about summary refs log tree commit diff
path: root/app/controllers/api/statuses_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:28:48 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-04 21:28:48 +0200
commitb5ebf994398c9fa7b9def139afbd545b53ae779a (patch)
tree13e2e8ebaf2d8d9480c14f3954aa4329e01d01cc /app/controllers/api/statuses_controller.rb
parent35dfc0fbcb725d45facc74af615fd96b9581d978 (diff)
Possibly fix issue with stale favourite/reblog information after API call
Diffstat (limited to 'app/controllers/api/statuses_controller.rb')
-rw-r--r--app/controllers/api/statuses_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/statuses_controller.rb b/app/controllers/api/statuses_controller.rb
index 579c3b893..d5d7a062f 100644
--- a/app/controllers/api/statuses_controller.rb
+++ b/app/controllers/api/statuses_controller.rb
@@ -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