Add optional delete_media
parameter to DELETE /api/v1/statuses/:id
(#33988)
This commit is contained in:
parent
b56e90d049
commit
e71fb450e0
3 changed files with 20 additions and 3 deletions
|
@ -111,7 +111,7 @@ class Api::V1::StatusesController < Api::BaseController
|
|||
@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 })
|
||||
RemovalWorker.perform_async(@status.id, { 'redraft' => !truthy_param?(:delete_media) })
|
||||
|
||||
render json: json
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue