From: Michael Date: Wed, 15 Feb 2023 05:13:40 +0000 (+0000) Subject: We can now store emoji reactions from Misskey X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f7747a360fd559b74e03baccf178e293f9ddc8a;p=friendica.git We can now store emoji reactions from Misskey --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 55c27a5198..b2daed13e4 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1211,7 +1211,8 @@ class Item Post\Thread::insert($item['uri-id'], $item); } - if (!in_array($item['verb'], self::ACTIVITIES)) { + // The content of activities normally doesn't matter - except for likes from Misskey + if (!in_array($item['verb'], self::ACTIVITIES) || in_array($item['verb'], [Activity::LIKE, Activity::DISLIKE]) && !empty($item['body']) && ($item['body'] != $item['verb'])) { Post\Content::insert($item['uri-id'], $item); }