diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-20 12:56:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 12:56:53 +0100 |
commit | 6b91da97bb76aea16659af7ef4a569d70e257f5a (patch) | |
tree | 3ec1e638a3840ff75d2dac2da0d520021b604d3f /app/controllers | |
parent | 70405db63ccfc7b9b2816e0e6bfeb6d99a8c6ec1 (diff) |
Fix directory showing tags that have no currently eligible accounts (#9872)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/directories_controller.rb | 2 |
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 |