Add filters to admin UI for custom emojis (#6003)
This commit is contained in:
parent
57fcc21a86
commit
ad75ec8b5b
6 changed files with 26 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue