]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Public items werent visible under certain circumstances
authorMichael <heluecht@pirati.ca>
Thu, 10 May 2018 22:06:34 +0000 (22:06 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 10 May 2018 22:06:34 +0000 (22:06 +0000)
include/conversation.php

index 5b7ebb78a182f3df45bd0ddfc744f5f2338cbff6..5d84be74cab81ed63cb9b95d322e672ceee4763b 100644 (file)
@@ -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`",