mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Possibly fix issue with stale favourite/reblog information after API call
This commit is contained in:
parent
35dfc0fbcb
commit
b5ebf99439
@ -12,12 +12,12 @@ class Api::StatusesController < ApiController
|
||||
end
|
||||
|
||||
def reblog
|
||||
@status = ReblogService.new.(current_user.account, Status.find(params[:id]))
|
||||
@status = ReblogService.new.(current_user.account, Status.find(params[:id])).reload
|
||||
render action: :show
|
||||
end
|
||||
|
||||
def favourite
|
||||
@status = FavouriteService.new.(current_user.account, Status.find(params[:id])).status
|
||||
@status = FavouriteService.new.(current_user.account, Status.find(params[:id])).status.reload
|
||||
render action: :show
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user