summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-11 08:34:21 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-11 08:35:09 -0500
commitc640b747f7e682ac632397cf32e41ef4c2dca96f (patch)
treeca7d150f4e131c74f8c5c70ff050b3736115857a /lib
parent80429ca70c5ec3f057197914ea9817a25c4a86c7 (diff)
add related link to Atom for feeds for some downstream users
Diffstat (limited to 'lib')
-rw-r--r--lib/jabber.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index f41d984d6..b385d3c5c 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -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";