]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
ping: cleanup
[friendica.git] / mod / community.php
index 3f0adff04fde219f2c25651dd8f23b1041d018e8..d6f87762bdefefda35ecdb15ec387c7711a439a9 100644 (file)
@@ -143,7 +143,7 @@ function community_getpublicitems($start, $itemspage) {
        $r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
                        `author-name` AS `name`, `owner-avatar` AS `photo`,
                        `owner-link` AS `url`, `owner-avatar` AS `thumb`
-               FROM `item` WHERE `item`.`uid` = 0
+               FROM `item` WHERE `item`.`uid` = 0 AND `item`.`id` = `item`.`parent`
                AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
                AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = ''
                ORDER BY `item`.`received` DESC LIMIT %d, %d",