]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: gravity in /src/Protocol/ActivityPub/Processor.php on...
authorMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 19:55:24 +0000 (19:55 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 19:55:24 +0000 (19:55 +0000)
src/Protocol/ActivityPub/Processor.php

index 241907f62359885289ce88ef4c8238f906c6d22a..db1492aa1d254e127dcda72c9dadd7ebf49dcaa3 100644 (file)
@@ -514,6 +514,10 @@ class Processor
         */
        public static function postItem(array $activity, array $item)
        {
+               if (empty($item)) {
+                       return;
+               }
+
                $stored = false;
 
                foreach ($activity['receiver'] as $receiver) {