Only show incoming pending contact requests with intro
This commit is contained in:
parent
2dbd843ed2
commit
a70a0306d7
|
@ -642,8 +642,8 @@ class Contact extends BaseModule
|
||||||
$sql_extra = " AND `archive` AND NOT `blocked`";
|
$sql_extra = " AND `archive` AND NOT `blocked`";
|
||||||
break;
|
break;
|
||||||
case 'pending':
|
case 'pending':
|
||||||
$sql_extra = " AND `pending` AND NOT `archive`
|
$sql_extra = sprintf(" AND `pending` AND NOT `archive` AND ((`rel` = %d)
|
||||||
AND NOT EXISTS (SELECT `id` FROM `intro` WHERE `contact-id` = `contact`.`id` AND `ignore`)";
|
OR EXISTS (SELECT `id` FROM `intro` WHERE `contact-id` = `contact`.`id` AND NOT `ignore`))", Model\Contact::SHARING);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$sql_extra = " AND NOT `archive` AND NOT `blocked` AND NOT `pending`";
|
$sql_extra = " AND NOT `archive` AND NOT `blocked` AND NOT `pending`";
|
||||||
|
|
Loading…
Reference in a new issue