Fix notice "Undefined index: gravity"

This commit is contained in:
Michael 2020-09-20 04:49:48 +00:00
parent 722aada460
commit 1898c0c351

View File

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