From 914a4e2e0a538583edcc2880baeebc1a41c2d2b7 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 10 May 2018 22:06:34 +0000 Subject: [PATCH] Fix: Public items werent visible under certain circumstances --- include/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 5b7ebb78a1..5d84be74ca 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -473,7 +473,7 @@ function item_joins() { return sprintf("STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id` AND NOT `contact`.`blocked` 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`) OR `contact`.`uid` = 0) INNER JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id` AND NOT `author`.`blocked` INNER JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id` AND NOT `owner`.`blocked` LEFT JOIN `event` ON `event-id` = `event`.`id`", -- 2.39.5