Fix view threads in Mastodon app

This commit is contained in:
noellabo 2023-03-05 12:36:16 +09:00
parent ddcece6f19
commit c12cefc619
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
class Api::V1::Statuses::HistoriesController < Api::BaseController
include Authorization
before_action -> { authorize_if_got_token! :read, :'read:statuses' }
def show
render json: [], status: 200
end
end

View file

@ -368,6 +368,8 @@ Rails.application.routes.draw do
resources :emoji_reactions, only: :update, constraints: { id: /[^\/]+/ } resources :emoji_reactions, only: :update, constraints: { id: /[^\/]+/ }
post :emoji_unreaction, to: 'emoji_reactions#destroy' post :emoji_unreaction, to: 'emoji_reactions#destroy'
resource :history, only: :show
end end
member do member do