]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Changed "hidewall" behaviour
[friendica.git] / mod / community.php
index 5ffb00729fd8aa8a33aebc037174aea275795080..61cca730df07b00c8a3cef39568c439c1c4b694d 100644 (file)
@@ -237,9 +237,9 @@ function community_getitems($start, $itemspage, $content, $accounttype)
                return DBA::toArray($r);
        } elseif ($content == 'global') {
                if (!is_null($accounttype)) {
-                       $condition = ["`uid` = ? AND `owner`.`contact-type` = ?", 0, $accounttype];
+                       $condition = ["`uid` = ? AND NOT `author`.`unsearchable` AND NOT `owner`.`unsearchable` AND `owner`.`contact-type` = ?", 0, $accounttype];
                } else {
-                       $condition = ['uid' => 0];
+                       $condition = ["`uid` = ? AND NOT `author`.`unsearchable` AND NOT `owner`.`unsearchable`", 0];
                }
 
                $r = Item::selectThreadForUser(0, ['uri'], $condition, ['order' => ['commented' => true], 'limit' => [$start, $itemspage]]);