瀏覽代碼
Fix directory showing tags that have no currently eligible accounts (#9872)
master
Eugen Rochko
5 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
1 行新增 和
1 行删除
-
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 |
|
|
|