Fix glitch-toc route
This commit is contained in:
parent
5a638a9551
commit
b183089a48
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ class Api::V1::Statuses::EmojiReactionsController < Api::BaseController
|
|||
before_action :set_status_without_authorize, only: [:destroy]
|
||||
|
||||
def create
|
||||
create_private(params[:emoji])
|
||||
create_private(params[:emoji] || params[:id])
|
||||
end
|
||||
|
||||
# For compatible with Fedibird API
|
||||
|
|
|
@ -34,8 +34,8 @@ namespace :api, format: false do
|
|||
|
||||
resources :emoji_reactions, only: [:create, :update, :destroy], constraints: { id: %r{[^/]+} }
|
||||
post :emoji_unreaction, to: 'emoji_reactions#destroy'
|
||||
post :react, to: 'emoji_reactions#create'
|
||||
post :unreact, to: 'emoji_reactions#destroy'
|
||||
post '/react/:id', to: 'emoji_reactions#create', constraints: { id: %r{[^/]+} }
|
||||
post '/unreact/:id', to: 'emoji_reactions#destroy', constraints: { id: %r{[^/]+} }
|
||||
end
|
||||
|
||||
member do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue