Don't show contacts that we ignore or block
This commit is contained in:
parent
cfc639ffe4
commit
990b65b859
1 changed files with 3 additions and 0 deletions
|
@ -290,6 +290,9 @@ class Channel extends BaseModule
|
||||||
$condition = ["`media-type` & ?", 4];
|
$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)) {
|
if ((self::$content != self::WHATSHOT) && !is_null(self::$accountType)) {
|
||||||
$condition[0] .= " AND `contact-type` = ?";
|
$condition[0] .= " AND `contact-type` = ?";
|
||||||
$condition[] = self::$accountType;
|
$condition[] = self::$accountType;
|
||||||
|
|
Loading…
Reference in a new issue