From b5cdd78523b9d49e4bafb6193142552f73ef9ab0 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 28 Mar 2020 14:02:49 +0000 Subject: [PATCH] Issue 8341: Make events sharable --- src/Protocol/ActivityPub/Processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index b56a6a5b13..7a8179b05e 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -544,7 +544,7 @@ class Processor Logger::info('Accepting post', ['uid' => $receiver, 'url' => $item['uri']]); } - if ($activity['object_type'] == 'as:Event') { + if (($item['gravity'] != GRAVITY_ACTIVITY) && ($activity['object_type'] == 'as:Event')) { self::createEvent($activity, $item); }