about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-01-20 12:56:53 +0100
committerGitHub <noreply@github.com>2019-01-20 12:56:53 +0100
commit6b91da97bb76aea16659af7ef4a569d70e257f5a (patch)
tree3ec1e638a3840ff75d2dac2da0d520021b604d3f
parent70405db63ccfc7b9b2816e0e6bfeb6d99a8c6ec1 (diff)
Fix directory showing tags that have no currently eligible accounts (#9872)
-rw-r--r--app/controllers/directories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/directories_controller.rb b/app/controllers/directories_controller.rb
index 96fe4c1c6..ff7ff4a42 100644
--- a/app/controllers/directories_controller.rb
+++ b/app/controllers/directories_controller.rb
@@ -28,7 +28,7 @@ class DirectoriesController < ApplicationController
   end
 
   def set_tags
-    @tags = Tag.discoverable.limit(30)
+    @tags = Tag.discoverable.limit(30).reject { |tag| tag.cached_sample_accounts.empty? }
   end
 
   def set_accounts