Browse Source

Only show incoming pending contact requests with intro

pull/7604/head
Michael 2 years ago
parent
commit
a70a0306d7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Module/Contact.php

+ 2
- 2
src/Module/Contact.php View File

@ -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…
Cancel
Save