]> git.mxchange.org Git - friendica.git/commitdiff
We can now store emoji reactions from Misskey
authorMichael <heluecht@pirati.ca>
Wed, 15 Feb 2023 05:13:40 +0000 (05:13 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 15 Feb 2023 05:13:40 +0000 (05:13 +0000)
src/Model/Item.php

index 55c27a51986cd08456591ed8188e60e4eec8dc8c..b2daed13e4b2f80516edb8743fa736bc17bec514 100644 (file)
@@ -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);
                }