From: Eugen Rochko Date: Sun, 20 Jan 2019 11:56:53 +0000 (+0100) Subject: Fix directory showing tags that have no currently eligible accounts (#9872) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6b91da97bb76aea16659af7ef4a569d70e257f5a;p=mastodon.git Fix directory showing tags that have no currently eligible accounts (#9872) --- 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