Don't show contacts that we ignore or block
This commit is contained in:
parent
cfc639ffe4
commit
990b65b859
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user