From 6b91da97bb76aea16659af7ef4a569d70e257f5a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 20 Jan 2019 12:56:53 +0100 Subject: [PATCH] Fix directory showing tags that have no currently eligible accounts (#9872) --- app/controllers/directories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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