Suppress blocked contacts from being displayed
This commit is contained in:
parent
e5a6e7b449
commit
125afb4ae5
|
@ -474,8 +474,8 @@ function item_joins() {
|
||||||
AND NOT `contact`.`blocked`
|
AND NOT `contact`.`blocked`
|
||||||
AND ((NOT `contact`.`readonly` AND NOT `contact`.`pending` AND (`contact`.`rel` IN (%s, %s)))
|
AND ((NOT `contact`.`readonly` AND NOT `contact`.`pending` AND (`contact`.`rel` IN (%s, %s)))
|
||||||
OR `contact`.`self` OR (`item`.`id` != `item`.`parent`))
|
OR `contact`.`self` OR (`item`.`id` != `item`.`parent`))
|
||||||
LEFT JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id`
|
INNER JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id` AND NOT `author`.`blocked`
|
||||||
LEFT JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id`
|
INNER JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id` AND NOT `owner`.`blocked`
|
||||||
LEFT JOIN `event` ON `event-id` = `event`.`id`",
|
LEFT JOIN `event` ON `event-id` = `event`.`id`",
|
||||||
CONTACT_IS_SHARING, CONTACT_IS_FRIEND
|
CONTACT_IS_SHARING, CONTACT_IS_FRIEND
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue