]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/rssaction.php
add a print_r for the yadis doc returned
[quix0rs-gnu-social.git] / lib / rssaction.php
index 9d4066ee59fffd6325234c5d5283f93ea1124050..54259f4af588cb2f575464e1e933f8e8007ec9c1 100644 (file)
@@ -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,10 +108,10 @@ 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));
+               common_element('description', NULL, $notice->content);
                common_element('dc:date', NULL, common_date_w3dtf($notice->created));
                common_element_end('item');
        }