diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 08:39:47 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 08:39:47 -0700 |
commit | 5affe093aba97a0e4ac559b685a240d568929ffb (patch) | |
tree | e99a3b5451064f004dde34f47e5a802bef8c58ef /plugins/Comet/CometPlugin.php | |
parent | 1a61a171cdb39444e2c0fbed7cf3a92e0ec271df (diff) |
add in_reply_to link and make HTML in source work correctly
Diffstat (limited to 'plugins/Comet/CometPlugin.php')
-rw-r--r-- | plugins/Comet/CometPlugin.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/Comet/CometPlugin.php b/plugins/Comet/CometPlugin.php index 48ac9dcad..0f2fcd701 100644 --- a/plugins/Comet/CometPlugin.php +++ b/plugins/Comet/CometPlugin.php @@ -158,6 +158,15 @@ class CometPlugin extends Plugin $arr = $act->twitter_status_array($notice, true); $arr['url'] = $notice->bestUrl(); $arr['html'] = htmlspecialchars($notice->rendered); + $arr['source'] = htmlspecialchars($arr['source']); + + if (!empty($notice->reply_to)) { + $reply_to = Notice::staticGet('id', $notice->reply_to); + if (!empty($reply_to)) { + $arr['in_reply_to_status_url'] = $reply_to->bestUrl(); + } + $reply_to = null; + } $profile = $notice->getProfile(); $arr['user']['profile_url'] = $profile->profileurl; |