]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Includes a sioc:reply_to link between notices. It helps with things
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 19 Jun 2009 15:54:24 +0000 (15:54 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 19 Jun 2009 15:54:24 +0000 (15:54 +0000)
like http://danbri.org/words/2009/06/16/415
Thanks to Toby Inkster for the patch:
http://buzzword.org.uk/2009/laconica-0.7.3-sioc-reply_to.patch

lib/rssaction.php

index eafdbf131d6d00d3801adb87729e49928a024598..08b333d974d5bcab5ba7887fc10694beb5d22842 100644 (file)
@@ -212,6 +212,11 @@ class Rss10Action extends Action
         $this->element('sioc:has_creator', array('rdf:resource' => $creator_uri.'#acct'));
         $this->element('laconica:postIcon', array('rdf:resource' => $profile->avatarUrl()));
         $this->element('cc:licence', array('rdf:resource' => common_config('license', 'url')));
+        if ($notice->reply_to) {
+            $replyurl = common_local_url('shownotice',
+            array('notice' => $notice->reply_to));
+            $this->element('sioc:reply_to', array('rdf:resource' => $replyurl));
+        }
         $this->elementEnd('item');
         $this->creators[$creator_uri] = $profile;
     }