mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
available is not vital
This commit is contained in:
parent
12e234656c
commit
495252690b
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue