feat: タグ補完から 0 件を除外(#109) #245

マージ済み
みてるぞ が 2 個のコミットを feature/109 から main へマージ 2026-01-29 22:48:04 +09:00
コミット a4ec7b44c7 の変更だけを表示してゐます - すべてのコミットを表示
+2
ファイルの表示
@@ -17,6 +17,7 @@ class TagsController < ApplicationController
return render json: [] if q.blank?
with_nico = !(params[:nico].to_s.strip.downcase.in?(['0', 'false', 'off', 'no']))
with_empty = params[:empty].to_s.strip.downcase.in?(['1', 'true', 'on', 'yes'])
alias_rows =
TagName
@@ -33,6 +34,7 @@ class TagsController < ApplicationController
end
base = Tag.joins(:tag_name).includes(:tag_name)
base = base.where('tags.post_count > 0') unless with_empty
canonical_hit =
base