]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add related link to Atom for feeds for some downstream users
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 11 Feb 2009 13:34:21 +0000 (08:34 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 11 Feb 2009 13:34:21 +0000 (08:34 -0500)
lib/jabber.php

index f41d984d6261a46698f11cf27de238d8698e3ce1..b385d3c5cc5412e050d281bcb50d54809511b87d 100644 (file)
@@ -186,6 +186,11 @@ function jabber_format_entry($profile, $notice)
     $entry .= "<id>". $notice->uri . "</id>\n";
     $entry .= "<published>".common_date_w3dtf($notice->created)."</published>\n";
     $entry .= "<updated>".common_date_w3dtf($notice->modified)."</updated>\n";
+    if ($notice->reply_to) {
+        $replyurl = common_local_url('shownotice',
+                                     array('notice' => $notice->reply_to));
+        $entry .= "<link rel='related' href='" . $replyurl . "'/>\n";
+    }
     $entry .= "</entry>\n";
 
     $html  = "\n<html xmlns='http://jabber.org/protocol/xhtml-im'>\n";