Browse Source

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

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
b5ebf99439
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/api/statuses_controller.rb

+ 2
- 2
app/controllers/api/statuses_controller.rb 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

Loading…
Cancel
Save