X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FAPContact.php;h=37faf240ce1bc5efcf22826e7a4b5ba1b86c3cdf;hb=741bc98174f81b9cd65432716a21168dd34468a7;hp=56832cba6fb179bb2ad9f383f7248761b5ba01b1;hpb=e4e9a20ac8a8a7896c3d2e4136237d399c664dd6;p=friendica.git diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 56832cba6f..37faf240ce 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -366,10 +366,10 @@ class APContact } if (!empty($apcontact['sharedinbox'])) { - // Check if there are any vital inboxes - $vital = DBA::exists('apcontact', ["`sharedinbox` = ? AnD `inbox` IN (SELECT `url` FROM `inbox-status` WHERE `success` > `failure`)", + // Check if there are any available inboxes + $available = DBA::exists('apcontact', ["`sharedinbox` = ? AnD `inbox` IN (SELECT `url` FROM `inbox-status` WHERE `success` > `failure`)", $apcontact['sharedinbox']]); - if (!$vital) { + if (!$available) { // If all known personal inboxes are failing then set their shared inbox to failure as well Logger::info('Set shared inbox status to failure', ['sharedinbox' => $apcontact['sharedinbox']]); HTTPSignature::setInboxStatus($apcontact['sharedinbox'], false, true);