]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8341: Make events sharable
authorMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 14:02:49 +0000 (14:02 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 14:02:49 +0000 (14:02 +0000)
src/Protocol/ActivityPub/Processor.php

index b56a6a5b133926a73ed1a4578e6158fff7818893..7a8179b05ef10e2abe8655afda96fc590018bb65 100644 (file)
@@ -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);
                        }