aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-05-02 21:18:54 -0700
committerzotlabs <mike@macgirvin.com>2019-05-02 21:18:54 -0700
commitf55f5fa92a60c27bc14069d8046cf26550ec5053 (patch)
tree3f30005a9c16dfad2b02dc9dcb751a10cf93c81a /Zotlabs/Lib
parent347e88dc65b1240dc6d1690570531dc3015a4452 (diff)
downloadvolse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.tar.gz
volse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.tar.bz2
volse-hubzilla-f55f5fa92a60c27bc14069d8046cf26550ec5053.zip
emojireaction compat
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 83c8790df..0f34a60c5 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -566,6 +566,7 @@ class Activity {
return [];
}
+
if($i['target']) {
if(! is_array($i['target'])) {
$i['target'] = json_decode($i['target'],true);
@@ -1527,6 +1528,9 @@ class Activity {
if($act->type === 'Announce') {
$content['content'] = sprintf( t('&#x1f501; Repeated %1$s\'s %2$s'), $mention, $act->obj['type']);
}
+ if ($act->type === 'emojiReaction') {
+ $content['content'] = (($act->tgt && $act->tgt['type'] === 'Image') ? '[img=32x32]' . $act->tgt['url'] . '[/img]' : '&#x' . $act->tgt['name'] . ';');
+ }
}
if(! $s['created'])