~cytrogen/masto-fe

ref: 9f3df3edee2039e171e715da8c153c963ff8d922 masto-fe/app/controllers/api/v1/custom_emojis_controller.rb -rw-r--r-- 362 bytes
9f3df3ed — Claire [Glitch] Add some information about Full-text search being disabled in search popout 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class Api::V1::CustomEmojisController < Api::BaseController
  vary_by '', unless: :disallow_unauthenticated_api_access?

  def index
    cache_even_if_authenticated! unless disallow_unauthenticated_api_access?
    render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.listed.includes(:category) }
  end
end