diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-12 16:18:58 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-12 16:18:58 +0000 |
commit | 8524990512d41e9aa7114b6a3b5af073eeb9aabb (patch) | |
tree | ee245777fb652c5ecd8eb374aad8d835670b40e7 | |
parent | 4532babb6f3a7c8d2b155483a4a651f83cfc6c8a (diff) |
http://laconi.ca/trac/ticket/1367
Thanks to Toby Inkster for the patch.
-rw-r--r-- | lib/rssaction.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/rssaction.php b/lib/rssaction.php index a3a762317..eafdbf131 100644 --- a/lib/rssaction.php +++ b/lib/rssaction.php @@ -208,7 +208,8 @@ class Rss10Action extends Action } $this->element('dc:date', null, common_date_w3dtf($notice->created)); $this->element('dc:creator', null, ($profile->fullname) ? $profile->fullname : $profile->nickname); - $this->element('sioc:has_creator', array('rdf:resource' => $creator_uri)); + $this->element('foaf:maker', array('rdf:resource' => $creator_uri)); + $this->element('sioc:has_creator', array('rdf:resource' => $creator_uri.'#acct')); $this->element('laconica:postIcon', array('rdf:resource' => $profile->avatarUrl())); $this->element('cc:licence', array('rdf:resource' => common_config('license', 'url'))); $this->elementEnd('item'); @@ -220,15 +221,15 @@ class Rss10Action extends Action foreach ($this->creators as $uri => $profile) { $id = $profile->id; $nickname = $profile->nickname; - $this->elementStart('sioc:User', array('rdf:about' => $uri)); + $this->elementStart('foaf:Agent', array('rdf:about' => $uri)); $this->element('foaf:nick', null, $nickname); if ($profile->fullname) { $this->element('foaf:name', null, $profile->fullname); } - $this->element('sioc:id', null, $id); + $this->element('foaf:holdsAccount', array('rdf:resource' => $uri.'#acct')); $avatar = $profile->avatarUrl(); - $this->element('sioc:avatar', array('rdf:resource' => $avatar)); - $this->elementEnd('sioc:User'); + $this->element('foaf:depiction', array('rdf:resource' => $avatar)); + $this->elementEnd('foaf:Agent'); } } |