diff options
author | Mario <mario@mariovavti.com> | 2022-05-10 12:15:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-05-10 12:15:29 +0000 |
commit | e59cc3d40490939aa19a13246fdc2f8b8d80b1db (patch) | |
tree | 84e65e1742b258005301263bc4a242beacadebbb /Zotlabs | |
parent | 3a2d126877f4e85a813665193e5d5e71fac19368 (diff) | |
download | volse-hubzilla-e59cc3d40490939aa19a13246fdc2f8b8d80b1db.tar.gz volse-hubzilla-e59cc3d40490939aa19a13246fdc2f8b8d80b1db.tar.bz2 volse-hubzilla-e59cc3d40490939aa19a13246fdc2f8b8d80b1db.zip |
deal with pleroma reactions
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index e043665ca..7dba55a63 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2273,6 +2273,14 @@ class Activity { if ($act->type === 'emojiReaction') { $content['content'] = (($act->tgt && $act->tgt['type'] === 'Image') ? '[img=32x32]' . $act->tgt['url'] . '[/img]' : '&#x' . $act->tgt['name'] . ';'); } + + if (in_array($act->type, ['EmojiReaction', 'EmojiReact'])) { + // Pleroma reactions + $t = trim(self::get_textfield($act->data, 'content')); + if (mb_strlen($t) === 1) { + $content['content'] = $t; + } + } } $s['item_thread_top'] = 0; |