From: Michael Date: Sat, 2 Sep 2023 16:16:56 +0000 (+0000) Subject: Don't show contacts that we ignore or block X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=990b65b859b30160e37cd8caae404e16d7351b01;p=friendica.git Don't show contacts that we ignore or block --- diff --git a/src/Module/Conversation/Channel.php b/src/Module/Conversation/Channel.php index afc02764ba..d5d709331f 100644 --- a/src/Module/Conversation/Channel.php +++ b/src/Module/Conversation/Channel.php @@ -290,6 +290,9 @@ class Channel extends BaseModule $condition = ["`media-type` & ?", 4]; } + $condition[0] .= " AND NOT EXISTS(SELECT `cid` FROM `user-contact` WHERE `uid` = ? AND `cid` = `post-engagement`.`owner-id` AND (`ignored` OR `blocked` OR `collapsed`))"; + $condition[] = DI::userSession()->getLocalUserId(); + if ((self::$content != self::WHATSHOT) && !is_null(self::$accountType)) { $condition[0] .= " AND `contact-type` = ?"; $condition[] = self::$accountType;