diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-13 16:01:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 16:01:09 +0200 |
commit | 59da5ccb8e9e06e0c91ebd548e899786c632f1de (patch) | |
tree | 15e40767f5322abafd159aa93fb4c6793a9ae00a /app/controllers/api/v1 | |
parent | 45f44ef4d35c5f77ea4b264cf848ad1c67f8647d (diff) |
Change unlisted custom emoji to not appear in autosuggestions (#11818)
Fix #11669
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r-- | app/controllers/api/v1/custom_emojis_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/custom_emojis_controller.rb b/app/controllers/api/v1/custom_emojis_controller.rb index 252f667dd..4e6d5d7c6 100644 --- a/app/controllers/api/v1/custom_emojis_controller.rb +++ b/app/controllers/api/v1/custom_emojis_controller.rb @@ -7,6 +7,6 @@ class Api::V1::CustomEmojisController < Api::BaseController def index expires_in 3.minutes, public: true - render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.local.where(disabled: false).includes(:category) } + render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.listed.includes(:category) } end end |