Skip to content

Commit

Permalink
Fix #1897 - Return reblogged: false on unreblog (was wrongly named va…
Browse files Browse the repository at this point in the history
…riable) (#1989)
  • Loading branch information
Gargron committed Apr 17, 2017
1 parent 21a767d commit e43071a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/api/v1/statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def reblog
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)

Expand All @@ -93,7 +93,7 @@ def favourite

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)

Expand Down

0 comments on commit e43071a

Please sign in to comment.