mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Don't show failed contacts
This commit is contained in:
parent
17b9c3542d
commit
00974324fe
7 changed files with 9 additions and 4 deletions
|
@ -652,15 +652,15 @@ class Contact extends BaseModule
|
|||
array_unshift($sql_values, 0);
|
||||
break;
|
||||
case 'archived':
|
||||
$sql_extra = " AND `archive` AND NOT `blocked` AND NOT `pending`";
|
||||
$sql_extra = " AND (`archive` OR `failed`) AND NOT `blocked` AND NOT `pending`";
|
||||
break;
|
||||
case 'pending':
|
||||
$sql_extra = " AND `pending` AND NOT `archive` AND ((`rel` = ?)
|
||||
$sql_extra = " AND `pending` AND NOT `archive` AND NOT `failed` AND ((`rel` = ?)
|
||||
OR EXISTS (SELECT `id` FROM `intro` WHERE `contact-id` = `contact`.`id` AND NOT `ignore`))";
|
||||
$sql_values[] = Model\Contact::SHARING;
|
||||
break;
|
||||
default:
|
||||
$sql_extra = " AND NOT `archive` AND NOT `blocked` AND NOT `pending`";
|
||||
$sql_extra = " AND NOT `archive` AND NOT `blocked` AND NOT `pending` AND NOT `failed`";
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue