]> git.mxchange.org Git - friendica.git/commitdiff
Add exception for self-contact in item_joins()
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 28 Apr 2018 15:38:01 +0000 (11:38 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 28 Apr 2018 15:38:01 +0000 (11:38 -0400)
include/conversation.php

index bd3481670ed40cac4d2de55bc135b44c316247a3..85f65473406a2d6246c6540e07a1009d76cf2ec4 100644 (file)
@@ -471,7 +471,7 @@ These Fields are not added below (yet). They are here to for bug search.
  */
 function item_joins() {
        return sprintf("STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
-               AND `contact`.`rel` IN (%s, %s)
+               AND (`contact`.`rel` IN (%s, %s) OR `contact`.`self`)
                AND NOT (`contact`.`blocked` OR `contact`.`readonly` OR `contact`.`pending`)
                LEFT JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id`
                LEFT JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id`