From: Michael Date: Mon, 9 Sep 2019 08:58:56 +0000 (+0000) Subject: Only show incoming pending contact requests with intro X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a70a0306d7773fb783240158ae1644824c308afd;p=friendica.git Only show incoming pending contact requests with intro --- diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 331da12816..0b27f0e4a3 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -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`";