mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
shuffle queue deliveries for more randomness
This commit is contained in:
@@ -55,6 +55,9 @@ class Queue {
|
||||
foreach ($qItems as $qItem) {
|
||||
$deliveries[] = $qItem['outq_hash'];
|
||||
}
|
||||
shuffle($deliveries);
|
||||
hz_syslog(print_r($deliveries, true));
|
||||
|
||||
do_delivery($deliveries, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1729,12 +1729,14 @@ function deliverable_singleton($channel_id,$xchan) {
|
||||
intval($channel_id),
|
||||
dbesc($xchan_hash)
|
||||
);
|
||||
|
||||
if($r) {
|
||||
if(! $r[0]['abook_instance'])
|
||||
return true;
|
||||
if(strpos($r[0]['abook_instance'],z_root()) !== false)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user