Fix directory showing tags that have no currently eligible accounts (#9872)

lolsob-rspec
Eugen Rochko 2019-01-20 12:56:53 +01:00 committed by GitHub
parent f444306764
commit f77529ca00
1 changed files with 1 additions and 1 deletions

View File

@ -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