aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-23 20:00:10 -0700
committerfriendica <info@friendica.com>2012-08-23 20:00:10 -0700
commit2456174cc905d2d0ae19d21c94fec2c5552322a8 (patch)
tree1e64335bad03cadb168d9cd88627e6a893459efb /include/conversation.php
parenta9dabd8eb918436b57d9263ad3d635774455f28f (diff)
downloadvolse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.gz
volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.bz2
volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.zip
back to identity creation form
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php14
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';",