mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Fix workerqueue entries with wrong priority
This commit is contained in:
parent
30bcb24af7
commit
a8839517fe
2 changed files with 3 additions and 3 deletions
|
@ -725,7 +725,7 @@ class Item
|
|||
return GRAVITY_UNKNOWN; // Should not happen
|
||||
}
|
||||
|
||||
public static function insert(array $item, bool $notify = false, bool $post_local = true)
|
||||
public static function insert(array $item, int $notify = 0, bool $post_local = true)
|
||||
{
|
||||
$orig_item = $item;
|
||||
|
||||
|
@ -739,7 +739,7 @@ class Item
|
|||
$item['protocol'] = Conversation::PARCEL_DIRECT;
|
||||
$item['direction'] = Conversation::PUSH;
|
||||
|
||||
if (in_array($notify, PRIORITIES)) {
|
||||
if (is_int($notify) && in_array($notify, PRIORITIES)) {
|
||||
$priority = $notify;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue