diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-17 19:58:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-17 19:58:38 +0200 |
commit | e43071a2f94354e54816b455e10cc596205af605 (patch) | |
tree | 0ad523ca5a258ad42db8d8ccefc351588ffbc6b6 | |
parent | 21a767dcfa2fba35a6bd641d7d7933f8734d41ee (diff) |
Fix #1897 - Return reblogged: false on unreblog (was wrongly named variable) (#1989)
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 1976ce330..b0e26918e 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -77,9 +77,9 @@ class Api::V1::StatusesController < ApiController end def unreblog - reblog = Status.where(account_id: current_user.account, reblog_of_id: params[:id]).first! - @status = reblog.reblog - @reblogged_map = { @status.id => false } + reblog = Status.where(account_id: current_user.account, reblog_of_id: params[:id]).first! + @status = reblog.reblog + @reblogs_map = { @status.id => false } RemovalWorker.perform_async(reblog.id) @@ -93,7 +93,7 @@ class Api::V1::StatusesController < ApiController def unfavourite @status = Status.find(params[:id]) - @favourited_map = { @status.id => false } + @favourites_map = { @status.id => false } UnfavouriteWorker.perform_async(current_user.account_id, @status.id) |