|
@ -77,10 +77,12 @@ class Api::V1::StatusesController < Api::BaseController |
|
|
authorize @status, :destroy? |
|
|
authorize @status, :destroy? |
|
|
|
|
|
|
|
|
@status.discard |
|
|
@status.discard |
|
|
RemovalWorker.perform_async(@status.id, { 'redraft' => true }) |
|
|
|
|
|
@status.account.statuses_count = @status.account.statuses_count - 1 |
|
|
@status.account.statuses_count = @status.account.statuses_count - 1 |
|
|
|
|
|
json = render_to_body json: @status, serializer: REST::StatusSerializer, source_requested: true |
|
|
|
|
|
|
|
|
|
|
|
RemovalWorker.perform_async(@status.id, { 'redraft' => true }) |
|
|
|
|
|
|
|
|
render json: @status, serializer: REST::StatusSerializer, source_requested: true |
|
|
|
|
|
|
|
|
render json: json |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|