/api/v1/custom_emojis: forgot to include the category

This commit is contained in:
Kay Faraday 2021-09-08 01:08:41 +00:00
parent 9b0125d325
commit d55c272b46
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,6 @@ class Api::V1::CustomEmojisController < Api::BaseController
def index
expires_in 3.minutes, public: true
render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.enabled }
render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.enabled.includes(:category) }
end
end