]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: gravity"
authorMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 04:49:48 +0000 (04:49 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 04:49:48 +0000 (04:49 +0000)
src/Protocol/ActivityPub/Receiver.php

index ea5251438defa50a5e3cccb1b1c578a386d81f99..6910ee11c227d175ad3eae2324a0ac097805f22e 100644 (file)
@@ -487,6 +487,10 @@ class Receiver
                                        $object_data['thread-completion'] = true;
 
                                        $item = ActivityPub\Processor::createItem($object_data);
+                                       if (empty($item)) {
+                                               return;
+                                       }
+
                                        $item['post-type'] = Item::PT_ANNOUNCEMENT;
                                        ActivityPub\Processor::postItem($object_data, $item);