diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-20 18:02:24 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-20 18:02:24 -0500 |
commit | 9c0a7527a164785a39d5a337c6c57f793342af1e (patch) | |
tree | c399ec55fcbeec38015a5b2b9181a39558e05448 /app/controllers/api/v1 | |
parent | 0c507269d39d5e73ad6c879a4fab5cfc25ffdbc5 (diff) |
[Bug] Explicitly include "unpublish_on_delete" setting in deletions
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index a7ebbd014..b0cc95118 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -102,7 +102,7 @@ class Api::V1::StatusesController < Api::BaseController if !current_user.setting_unpublish_on_delete || !@status.published? || truthy_param?(:redraft) @status.discard - RemovalWorker.perform_async(@status.id, redraft: true) + RemovalWorker.perform_async(@status.id, redraft: true, immediate: !current_user.setting_unpublish_on_delete) @status.account.statuses_count = @status.account.statuses_count - 1 else RemovalWorker.perform_async(@status.id, redraft: true, unpublish: true) |