diff options
author | Mario <mario@mariovavti.com> | 2024-02-27 10:31:27 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-27 10:31:27 +0000 |
commit | b4f079c4b51d4b4918b1901ee351bc40aeb343da (patch) | |
tree | 387345c8bbccf56515861e7e8cda5d6396d9f902 /Zotlabs/Lib | |
parent | c639704f3c1a34bdd8bccd0e6ce37f3eef3921d7 (diff) | |
download | volse-hubzilla-b4f079c4b51d4b4918b1901ee351bc40aeb343da.tar.gz volse-hubzilla-b4f079c4b51d4b4918b1901ee351bc40aeb343da.tar.bz2 volse-hubzilla-b4f079c4b51d4b4918b1901ee351bc40aeb343da.zip |
For now we will use standard Create verb for emoji reactions
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 844dc5905..6b2c4d58a 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1227,11 +1227,6 @@ class Activity { return $acts[$verb]; } - // Reactions will just map to normal activities - - if (strpos($verb, ACTIVITY_REACT) !== false) - return 'Create'; - if (strpos($verb, ACTIVITY_MOOD) !== false) return 'Create'; @@ -2178,6 +2173,7 @@ class Activity { $content['content'] = sprintf(t('🔁 Repeated %1$s\'s %2$s'), $mention, $act->obj['type']); } + // TODO: Deprecated if ($act->type === 'emojiReaction') { $content['content'] = (($act->tgt && $act->tgt['type'] === 'Image') ? '[img=32x32]' . $act->tgt['url'] . '[/img]' : '&#x' . $act->tgt['name'] . ';'); } |