Abort when public item cannot be inserted

This commit is contained in:
Michael 2022-08-05 05:48:20 +00:00
parent 8227367522
commit 8b698b183d

View file

@ -1082,6 +1082,10 @@ class Processor
$success = true; $success = true;
} else { } else {
Logger::notice('Item insertion aborted', ['uri' => $item['uri'], 'uid' => $item['uid']]); Logger::notice('Item insertion aborted', ['uri' => $item['uri'], 'uid' => $item['uid']]);
if (($item['uid'] == 0) && (count($activity['receiver']) > 1)) {
Logger::info('Public item was aborted. We skip for all users.', ['uri' => $item['uri']]);
break;
}
} }
if ($item['uid'] == 0) { if ($item['uid'] == 0) {