Move by_domain/local interaction check to filter (#39216)

This commit is contained in:
Matt Jankowski
2026-06-01 10:52:19 -04:00
committed by GitHub
parent 50b6bbe379
commit 8d4f9a97fe
3 changed files with 9 additions and 6 deletions

View File

@@ -5,9 +5,6 @@ module Admin
def index
authorize :custom_emoji, :index?
# If filtering by local emojis, remove by_domain filter.
params.delete(:by_domain) if params[:local].present?
# If filtering by domain, ensure remote filter is set.
if params[:by_domain].present?
params.delete(:local)