]> git.mxchange.org Git - friendica.git/commitdiff
added empty object type
authorMichael <heluecht@pirati.ca>
Fri, 1 Apr 2022 21:27:40 +0000 (21:27 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 1 Apr 2022 21:27:40 +0000 (21:27 +0000)
src/Protocol/ActivityPub/Receiver.php

index 4de28fc2a89becd2764cc351fba6c12bb745db59..253e4d63103bf462f73f75a3ab983c6ba8e37b6a 100644 (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);