From 6ae6a8a983b336a56ece5d7f3a8e8ccd464239d7 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 9 Jan 2019 13:23:11 +0000 Subject: [PATCH 1/2] Don't show deleted contacts, set new AP contacts as "pending" until they are accepted --- src/Core/ACL.php | 4 ++-- src/Model/Contact.php | 4 +++- src/Module/Contact.php | 24 +++++++++++++----------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/Core/ACL.php b/src/Core/ACL.php index 9abd259ac..030825e81 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -101,7 +101,7 @@ class ACL extends BaseObject } $stmt = DBA::p("SELECT `id`, `name`, `url`, `network` FROM `contact` - WHERE `uid` = ? AND NOT `self` AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND `notify` != '' + WHERE `uid` = ? AND NOT `self` AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND NOT `deleted` AND `notify` != '' $sql_extra ORDER BY `name` ASC ", intval(local_user()) ); @@ -166,7 +166,7 @@ class ACL extends BaseObject $o .= "