]> 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 3b39a70319c1a225a0942c75b28f4a4acc60dfb4..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');
        }
 
@@ -111,7 +111,7 @@ class Rss10Action extends Action {
                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');
        }