mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Check for empty value
This commit is contained in:
parent
e6440471ae
commit
49ec5e5e6e
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class APDelivery
|
|||
}
|
||||
|
||||
if (!$success && !Worker::defer() && in_array($cmd, [Delivery::POST])) {
|
||||
if ($uri_id) {
|
||||
if (!empty($uri_id)) {
|
||||
Post\Delivery::remove($uri_id, $inbox);
|
||||
Post\DeliveryData::incrementQueueFailed($uri_id);
|
||||
} elseif (!empty($uri_ids)) {
|
||||
|
@ -78,7 +78,7 @@ class APDelivery
|
|||
}
|
||||
}
|
||||
} elseif ($success && in_array($cmd, [Delivery::POST])) {
|
||||
if ($uri_id) {
|
||||
if (!empty($uri_id)) {
|
||||
Post\DeliveryData::incrementQueueDone($uri_id, Post\DeliveryData::ACTIVITYPUB);
|
||||
} elseif (!empty($uri_ids)) {
|
||||
foreach ($uri_ids as $uri_id) {
|
||||
|
|
Loading…
Reference in a new issue