Abort when public item cannot be inserted
This commit is contained in:
parent
8227367522
commit
8b698b183d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue