added empty object type

This commit is contained in:
Michael 2022-04-01 21:27:40 +00:00
parent 71afbabbd8
commit 1db3143dc5

View file

@ -752,7 +752,7 @@ class Receiver
break;
case 'litepub:EmojiReact':
if (in_array($object_data['object_type'], self::CONTENT_TYPES)) {
if (in_array($object_data['object_type'], array_merge([''], self::CONTENT_TYPES))) {
// Unhandled Pleroma activity to react to a post via an emoji
} else {
self::storeUnhandledActivity(true, $type, $object_data, $activity, $body, $uid, $trust_source, $push, $signer);