diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-12-13 13:28:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 13:28:31 +0100 |
commit | ad75ec8b5b1775edaa485e94ddab69f189affde9 (patch) | |
tree | 2998cb7785ea64bbfda72b20737329651f0513dc /app/helpers/admin | |
parent | 57fcc21a8692b36262e67c41c3469037931a4d87 (diff) |
Add filters to admin UI for custom emojis (#6003)
Diffstat (limited to 'app/helpers/admin')
-rw-r--r-- | app/helpers/admin/filter_helper.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/helpers/admin/filter_helper.rb b/app/helpers/admin/filter_helper.rb index 7fe3def98..359c43d0e 100644 --- a/app/helpers/admin/filter_helper.rb +++ b/app/helpers/admin/filter_helper.rb @@ -1,11 +1,12 @@ # frozen_string_literal: true module Admin::FilterHelper - ACCOUNT_FILTERS = %i(local remote by_domain silenced suspended recent username display_name email ip staff).freeze - REPORT_FILTERS = %i(resolved account_id target_account_id).freeze - INVITE_FILTER = %i(available expired).freeze + ACCOUNT_FILTERS = %i(local remote by_domain silenced suspended recent username display_name email ip staff).freeze + REPORT_FILTERS = %i(resolved account_id target_account_id).freeze + INVITE_FILTER = %i(available expired).freeze + CUSTOM_EMOJI_FILTERS = %i(local remote by_domain shortcode).freeze - FILTERS = ACCOUNT_FILTERS + REPORT_FILTERS + INVITE_FILTER + FILTERS = ACCOUNT_FILTERS + REPORT_FILTERS + INVITE_FILTER + CUSTOM_EMOJI_FILTERS def filter_link_to(text, link_to_params, link_class_params = link_to_params) new_url = filtered_url_for(link_to_params) |