Fix view threads in Mastodon app
This commit is contained in:
parent
ddcece6f19
commit
c12cefc619
2 changed files with 13 additions and 0 deletions
11
app/controllers/api/v1/statuses/histories_controller.rb
Normal file
11
app/controllers/api/v1/statuses/histories_controller.rb
Normal 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
|
|
@ -368,6 +368,8 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :emoji_reactions, only: :update, constraints: { id: /[^\/]+/ }
|
||||
post :emoji_unreaction, to: 'emoji_reactions#destroy'
|
||||
|
||||
resource :history, only: :show
|
||||
end
|
||||
|
||||
member do
|
||||
|
|
Loading…
Reference in a new issue