diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-04 18:18:10 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-04 18:18:10 -0700 |
commit | 7ef641e256aba64978ea9a41a31b78e4af5c68b0 (patch) | |
tree | ac7e80030e53bc0c91fb6a3757e04e4e65fb1b3b /include/conversation.php | |
parent | 1d903655afdd8e49942c6d6c9ca1a7feadeaaa82 (diff) | |
parent | 6995d54a3cc162d87f881f6e206fa356230fd9e8 (diff) | |
download | volse-hubzilla-7ef641e256aba64978ea9a41a31b78e4af5c68b0.tar.gz volse-hubzilla-7ef641e256aba64978ea9a41a31b78e4af5c68b0.tar.bz2 volse-hubzilla-7ef641e256aba64978ea9a41a31b78e4af5c68b0.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index f395b2cbe..2ce4dacef 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -162,6 +162,18 @@ function localize_item(&$item){ elseif(activity_match($item['verb'],ACTIVITY_DISLIKE)) { $bodyverb = t('%1$s doesn\'t like %2$s\'s %3$s'); } + + // short version, in notification strings the author will be displayed separately + + if(activity_match($item['verb'],ACTIVITY_LIKE)) { + $shortbodyverb = t('likes %1$s\'s %2$s'); + } + elseif(activity_match($item['verb'],ACTIVITY_DISLIKE)) { + $shortbodyverb = t('doesn\'t like %1$s\'s %2$s'); + } + + $item['shortlocalize'] = sprintf($shortbodyverb, $objauthor, $plink); + $item['body'] = $item['localize'] = sprintf($bodyverb, $author, $objauthor, $plink); if($Bphoto != "") $item['body'] .= "\n\n\n" . '[zrl=' . chanlink_url($author_link) . '][zmg=80x80]' . $Bphoto . '[/zmg][/zrl]'; |