diff options
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index 3bbaf0cba..59f2f2ed8 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -206,6 +206,20 @@ function localize_item(&$item){ $item['body'] = sprintf($txt, $A, $B). "\n\n\n" . $Bphoto; } + if (stristr($item['verb'],ACTIVITY_MOOD)) { + $verb = urldecode(substr($item['verb'],strpos($item['verb'],'#')+1)); + if(! $verb) + return; + + $Aname = $item['author-name']; + $Alink = $item['author-link']; + $A = '[url=' . zrl($Alink) . ']' . $Aname . '[/url]'; + + $txt = t('%1$s is currently %2$s'); + + $item['body'] = sprintf($txt, $A, t($verb)); + } + if ($item['verb']===ACTIVITY_TAG){ $r = q("SELECT * from `item`,`contact` WHERE `item`.`contact-id`=`contact`.`id` AND `item`.`uri`='%s';", |