1
0

Possibly fix issue with stale favourite/reblog information after API call

This commit is contained in:
Eugen Rochko 2016-09-04 21:28:48 +02:00
parent 35dfc0fbcb
commit b5ebf99439

View File

@ -12,12 +12,12 @@ class Api::StatusesController < ApiController
end end
def reblog 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 render action: :show
end end
def favourite 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 render action: :show
end end