Remove unsafed api emoji_reactions slim

This commit is contained in:
KMY 2023-09-21 16:23:37 +09:00
parent e84eb3fc81
commit dd51fae42f
5 changed files with 0 additions and 95 deletions

View file

@ -1,31 +0,0 @@
# frozen_string_literal: true
class Api::V1::Statuses::EmojiReactionedByAccountsSlimController < Api::BaseController
include Authorization
before_action -> { authorize_if_got_token! :read, :'read:accounts' }
before_action :set_status
def index
@accounts = load_emoji_reactions
# TODO: for serialize hash object
# render json: @accounts, each_serializer: REST::EmojiReactedBySlimSerializer
# Hide WIP api for hide account secret
not_found
end
private
def load_emoji_reactions
@status.generate_emoji_reactions_grouped_by_account
end
def set_status
@status = Status.find(params[:status_id])
authorize @status, :show?
rescue Mastodon::NotPermittedError
not_found
end
end