mirror of
https://github.com/friendica/friendica
synced 2024-11-11 05:02:54 +00:00
Only show incoming pending contact requests with intro
This commit is contained in:
parent
2dbd843ed2
commit
a70a0306d7
1 changed files with 2 additions and 2 deletions
|
@ -642,8 +642,8 @@ class Contact extends BaseModule
|
|||
$sql_extra = " AND `archive` AND NOT `blocked`";
|
||||
break;
|
||||
case 'pending':
|
||||
$sql_extra = " AND `pending` AND NOT `archive`
|
||||
AND NOT EXISTS (SELECT `id` FROM `intro` WHERE `contact-id` = `contact`.`id` AND `ignore`)";
|
||||
$sql_extra = sprintf(" AND `pending` AND NOT `archive` AND ((`rel` = %d)
|
||||
OR EXISTS (SELECT `id` FROM `intro` WHERE `contact-id` = `contact`.`id` AND NOT `ignore`))", Model\Contact::SHARING);
|
||||
break;
|
||||
default:
|
||||
$sql_extra = " AND NOT `archive` AND NOT `blocked` AND NOT `pending`";
|
||||
|
|
Loading…
Reference in a new issue