summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-11 20:53:11 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-02-11 20:53:11 +0000
commitc6070200fe35a5746fac2f0b6d7665d1b598feb8 (patch)
treeb72670326322f1a043b23c11b57d03df530d72ae /lib/jabber.php
parent47a5d2b7f06cd1612734c47ad21fc397bbff5276 (diff)
parentc640b747f7e682ac632397cf32e41ef4c2dca96f (diff)
Merge branch 'master' of git://gitorious.org/laconica/mainline
Diffstat (limited to 'lib/jabber.php')
-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";