From 1db3143dc5bef5e2c452dd4a9603eca1c8aad6a8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 1 Apr 2022 21:27:40 +0000 Subject: [PATCH] added empty object type --- src/Protocol/ActivityPub/Receiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 4de28fc2a8..253e4d6310 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -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); -- 2.39.5