We can now store emoji reactions from Misskey

This commit is contained in:
Michael 2023-02-15 05:13:40 +00:00
parent 40e0ea239a
commit 9f7747a360

View 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);
}