From b4f079c4b51d4b4918b1901ee351bc40aeb343da Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 27 Feb 2024 10:31:27 +0000 Subject: For now we will use standard Create verb for emoji reactions --- Zotlabs/Lib/Activity.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Zotlabs/Lib') 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'] . ';'); } -- cgit v1.2.3