]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide popular notice section on non-private sites
authorEvan Prodromou <evan@status.net>
Mon, 19 Sep 2011 20:19:12 +0000 (16:19 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 19 Sep 2011 20:19:12 +0000 (16:19 -0400)
actions/all.php

index a7f325e014567da447ee4b6f852809ca28d8477b..cbd2805ca3170b94be1c2db6859318461577e7e0 100644 (file)
@@ -210,8 +210,11 @@ class AllAction extends ProfileAction
             }
             $ibs->show();
         }
-        $pop = new PopularNoticeSection($this);
-        $pop->show();
+        // XXX: make this a little more convenient
+        if (common_config('site', 'private')) {
+            $pop = new PopularNoticeSection($this);
+            $pop->show();
+        }
         //        $pop = new InboxTagCloudSection($this, $this->user);
         //        $pop->show();
     }