rdfs:label in sioc:link of SIOC user profile contains label for another user (the one who's currently logged in).

See:

<sioc:User rdf:about="http://rdfs.org/user/1">
  <sioc:name>Cloud</sioc:name>
  <sioc:description></sioc:description>
  <sioc:email_sha1>da39a3ee5e6b4b0d3255bfef95601890afd80709</sioc:email_sha1>
  <sioc:link rdfs:label="CaptSolo" rdf:resource="http://rdfs.org/user/1" />

Comments

captsolo’s picture

[Apparently] rdfs:label contains the login name of the user who is currently logged in to Drupal. if not logged in, you will see an empty rdfs:label.

Also - sioc:description has an empty value in the RDF data quoted. if empty, it should be omitted.

Cloud’s picture

Status: Active » Closed (fixed)

Changed:

'label' => $user->name,

to:

'label' => $account->name,

Bug fixed!

Cloud’s picture

Added general check for blank literals.

Cloud’s picture

Status: Closed (fixed) » Fixed

Okay, this has been fixed too.

Anonymous’s picture

Status: Fixed » Closed (fixed)