summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-12 16:15:30 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-12 16:15:30 +0000
commit4532babb6f3a7c8d2b155483a4a651f83cfc6c8a (patch)
treecb74df89223ff760447093bb451ef841f1405a6d
parent392c8d4a967f01533fd7458298e79c82486dc914 (diff)
http://laconi.ca/trac/ticket/1370
Thanks to Toby Inkster for the patch.
-rw-r--r--lib/rssaction.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rssaction.php b/lib/rssaction.php
index 6f30a02f2..a3a762317 100644
--- a/lib/rssaction.php
+++ b/lib/rssaction.php
@@ -170,7 +170,7 @@ class Rss10Action extends Action
$this->elementStart('rdf:Seq');
foreach ($this->notices as $notice) {
- $this->element('sioct:MicroblogPost', array('rdf:resource' => $notice->uri));
+ $this->element('rdf:li', array('rdf:resource' => $notice->uri));
}
$this->elementEnd('rdf:Seq');
@@ -197,7 +197,8 @@ class Rss10Action extends Action
$profile = Profile::staticGet($notice->profile_id);
$nurl = common_local_url('shownotice', array('notice' => $notice->id));
$creator_uri = common_profile_uri($profile);
- $this->elementStart('item', array('rdf:about' => $notice->uri));
+ $this->elementStart('item', array('rdf:about' => $notice->uri,
+ 'rdf:type' => 'http://rdfs.org/sioc/types#MicroblogPost'));
$title = $profile->nickname . ': ' . common_xml_safe_str(trim($notice->content));
$this->element('title', null, $title);
$this->element('link', null, $nurl);