]> git.mxchange.org Git - friendica.git/commitdiff
Don't show contacts that we ignore or block
authorMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 16:16:56 +0000 (16:16 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 16:16:56 +0000 (16:16 +0000)
src/Module/Conversation/Channel.php

index afc02764baf1a8230eb34ceab195cf7c7d8a294d..d5d709331f77bde6fcc19c344c90b66550f8ac4a 100644 (file)
@@ -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;