]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
disable public tag cloud on public sites
authorEvan Prodromou <evan@status.net>
Mon, 19 Sep 2011 23:37:58 +0000 (19:37 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 19 Sep 2011 23:37:58 +0000 (19:37 -0400)
actions/public.php

index f62d032ef8ba5ee9c28cd48752d3cd0c2c37f3c2..0e403f5af5a209613d03964ef44517c5891333d1 100644 (file)
@@ -245,8 +245,10 @@ class PublicAction extends Action
 
         $pop = new PopularNoticeSection($this);
         $pop->show();
-        $cloud = new PublicTagCloudSection($this);
-        $cloud->show();
+        if (common_config('site', 'private')) {
+            $cloud = new PublicTagCloudSection($this);
+            $cloud->show();
+        }
         $feat = new FeaturedUsersSection($this);
         $feat->show();
     }