]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add link to conversation pages when possible.
authorCraig Andrews <candrews@integralblue.com>
Sat, 18 Jul 2009 03:06:14 +0000 (23:06 -0400)
committerCraig Andrews <candrews@integralblue.com>
Sat, 18 Jul 2009 03:06:14 +0000 (23:06 -0400)
Thanks tobyink

lib/rssaction.php

index 7686d064608d453f3bc1d5555a346f925119a90a..76d0db224f34ea72b2a5f9171fa798c1a455664a 100644 (file)
@@ -234,6 +234,11 @@ class Rss10Action extends Action
             $replyurl = common_local_url('shownotice', array('notice' => $notice->reply_to));
             $this->element('sioc:reply_of', array('rdf:resource' => $replyurl));
         }
+        if (!empty($notice->conversation)) {
+            $conversationurl = common_local_url('conversation',
+                                         array('id' => $notice->conversation));
+            $this->element('sioc:has_discussion', array('rdf:resource' => $conversationurl));
+        }
         $attachments = $notice->attachments();
         if($attachments){
             foreach($attachments as $attachment){