]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Receiver.php
Merge pull request #9146 from tobiasd/2020.09-CHANGELOG
[friendica.git] / 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);