Don't add zero as receiver

This commit is contained in:
Michael 2022-07-29 22:56:53 +00:00
parent 13cd6259ec
commit 6383b07022

View File

@ -182,7 +182,7 @@ class Queue
$activity['worker-id'] = $entry['wid']; $activity['worker-id'] = $entry['wid'];
$activity['recursion-depth'] = 0; $activity['recursion-depth'] = 0;
$receivers = DBA::select('inbox-entry-receiver', ['uid'], ['queue-id' => $entry['id']]); $receivers = DBA::select('inbox-entry-receiver', ['uid'], ["`queue-id` = ? AND `uid` != ?", $entry['id'], 0]);
while ($receiver = DBA::fetch($receivers)) { while ($receiver = DBA::fetch($receivers)) {
if (!in_array($receiver['uid'], $activity['receiver'])) { if (!in_array($receiver['uid'], $activity['receiver'])) {
$activity['receiver'][] = $receiver['uid']; $activity['receiver'][] = $receiver['uid'];