X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frssaction.php;h=b52de42b2347465e71b64f2db6f135ccf0eb094a;hb=9cac74ddca9734a392f43d52c27d30cd1a3638ed;hp=9d4066ee59fffd6325234c5d5283f93ea1124050;hpb=310ef22fd996a21642cc63b33829cc1f397269d7;p=quix0rs-gnu-social.git diff --git a/lib/rssaction.php b/lib/rssaction.php index 9d4066ee59..b52de42b23 100644 --- a/lib/rssaction.php +++ b/lib/rssaction.php @@ -83,14 +83,14 @@ class Rss10Action extends Action { common_element_start('items'); common_element_start('rdf:Seq'); - foreach ($notices as $n) { - common_element('rdf:li', array('rdf:resource' => - common_local_url('shownotice', - array('notice' => $n->id)))); + + foreach ($notices as $notice) { + common_element('rdf:li', array('rdf:resource' => $notice->uri)); } common_element_end('rdf:Seq'); common_element_end('items'); + common_element_end('channel'); } @@ -108,7 +108,7 @@ class Rss10Action extends Action { function show_item($notice) { $nurl = common_local_url('shownotice', array('notice' => $notice->id)); - common_element_start('item', array('rdf:about' => $nurl)); + common_element_start('item', array('rdf:about' => $notice->uri)); common_element('title', NULL, $notice->created); common_element('link', NULL, $nurl); common_element('description', NULL, common_render_content($notice->content));