]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
community: Only show top postings, no comments
[friendica.git] / mod / community.php
index 27a9e219416abc0264b23f21f845c32bf5915156..84fc15debb51110407235c133475233cf4d072f6 100644 (file)
@@ -75,7 +75,8 @@ function community_content(&$a, $update = 0) {
                WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0
                AND `item`.`allow_cid` = ''  AND `item`.`allow_gid` = ''
                AND `item`.`deny_cid`  = '' AND `item`.`deny_gid`  = '' 
-               AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `user`.`hidewall` = 0
+               AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `item`.`id` = `item`.`parent`
+               AND `user`.`hidewall` = 0
                AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `contact`.`self`
                ORDER BY `received` DESC LIMIT %d, %d ",
                intval($a->pager['start']),