mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-11 11:07:26 -05:00
Move by_domain/local interaction check to filter (#39216)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user