mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
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[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 a new issue