mirror of
https://github.com/friendica/friendica
synced 2024-11-19 04:23:41 +00:00
Merge pull request #8624 from annando/fatal
Fix "Uncaught TypeError: Argument 1 passed to :incrementQueueDone()"
This commit is contained in:
commit
953fc78691
1 changed files with 4 additions and 3 deletions
|
@ -68,13 +68,14 @@ class APDelivery
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should never fail and is temporariy (until the move to )
|
// This should never fail and is temporariy (until the move to the "post" structure)
|
||||||
$item = Item::selectFirst(['uri-id'], ['id' => $target_id]);
|
$item = Item::selectFirst(['uri-id'], ['id' => $target_id]);
|
||||||
|
$uriid = $item['uri-id'] ?? 0;
|
||||||
|
|
||||||
if (!$success && !Worker::defer() && in_array($cmd, [Delivery::POST])) {
|
if (!$success && !Worker::defer() && in_array($cmd, [Delivery::POST])) {
|
||||||
Post\DeliveryData::incrementQueueFailed($item['uri-id']);
|
Post\DeliveryData::incrementQueueFailed($uriid);
|
||||||
} elseif ($success && in_array($cmd, [Delivery::POST])) {
|
} elseif ($success && in_array($cmd, [Delivery::POST])) {
|
||||||
Post\DeliveryData::incrementQueueDone($item['uri-id'], Post\DeliveryData::ACTIVITYPUB);
|
Post\DeliveryData::incrementQueueDone($uriid, Post\DeliveryData::ACTIVITYPUB);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue