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/models | |
parent | 57fcc21a8692b36262e67c41c3469037931a4d87 (diff) |
Add filters to admin UI for custom emojis (#6003)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/custom_emoji_filter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/custom_emoji_filter.rb b/app/models/custom_emoji_filter.rb index 2d1394a59..2c09ed65c 100644 --- a/app/models/custom_emoji_filter.rb +++ b/app/models/custom_emoji_filter.rb @@ -27,6 +27,8 @@ class CustomEmojiFilter CustomEmoji.remote when 'by_domain' CustomEmoji.where(domain: value) + when 'shortcode' + CustomEmoji.where(shortcode: value) else raise "Unknown filter: #{key}" end |