This commit is contained in:
parent
21a767dcfa
commit
e43071a2f9
|
@ -77,9 +77,9 @@ class Api::V1::StatusesController < ApiController
|
||||||
end
|
end
|
||||||
|
|
||||||
def unreblog
|
def unreblog
|
||||||
reblog = Status.where(account_id: current_user.account, reblog_of_id: params[:id]).first!
|
reblog = Status.where(account_id: current_user.account, reblog_of_id: params[:id]).first!
|
||||||
@status = reblog.reblog
|
@status = reblog.reblog
|
||||||
@reblogged_map = { @status.id => false }
|
@reblogs_map = { @status.id => false }
|
||||||
|
|
||||||
RemovalWorker.perform_async(reblog.id)
|
RemovalWorker.perform_async(reblog.id)
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ class Api::V1::StatusesController < ApiController
|
||||||
|
|
||||||
def unfavourite
|
def unfavourite
|
||||||
@status = Status.find(params[:id])
|
@status = Status.find(params[:id])
|
||||||
@favourited_map = { @status.id => false }
|
@favourites_map = { @status.id => false }
|
||||||
|
|
||||||
UnfavouriteWorker.perform_async(current_user.account_id, @status.id)
|
UnfavouriteWorker.perform_async(current_user.account_id, @status.id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue