From: Michael Date: Sat, 28 Mar 2020 14:02:49 +0000 (+0000) Subject: Issue 8341: Make events sharable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b5cdd78523b9d49e4bafb6193142552f73ef9ab0;p=friendica.git Issue 8341: Make events sharable --- 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); }