]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Suppress content from hidden or blocked contacts
[friendica.git] / mod / community.php
index 06c15d0083a5b12d16b041198f7d3267a72e29db..5536a4934cdf58dd03124cb717c7d8a8270f0360 100644 (file)
@@ -194,7 +194,8 @@ function community_getitems($start, $itemspage, $content)
        } elseif ($content == 'global') {
                $r = dba::p("SELECT `uri` FROM `thread`
                                INNER JOIN `item` ON `item`.`id` = `thread`.`iid`
-                               WHERE `thread`.`uid` = 0
+                               INNER JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id`
+                               WHERE `thread`.`uid` = 0 AND NOT `author`.`hidden` AND NOT `author`.`blocked`
                                ORDER BY `thread`.`commented` DESC LIMIT " . intval($start) . ", " . intval($itemspage));
                return dba::inArray($r);
        }