diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2019-05-10 05:03:03 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-09 22:03:02 +0200 |
commit | ce8635605c3be41ef0a20ade0e7a89b170bf7f04 (patch) | |
tree | 52dec6b31da7b77ce12c6b37b4bc0582e5dcf846 /app/models/form | |
parent | 09eea46631c99792e6e3b59ee20253827fd87ade (diff) |
Record deleted(by mod) status to prevent re-appear (#10732)
* Record deleted(by mod) status to prevent re-appear * Move to Tombstone * Add missing migration script
Diffstat (limited to 'app/models/form')
-rw-r--r-- | app/models/form/status_batch.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/form/status_batch.rb b/app/models/form/status_batch.rb index 898728067..933dfdaca 100644 --- a/app/models/form/status_batch.rb +++ b/app/models/form/status_batch.rb @@ -35,6 +35,7 @@ class Form::StatusBatch def delete_statuses Status.where(id: status_ids).reorder(nil).find_each do |status| RemovalWorker.perform_async(status.id) + Tombstone.find_or_create_by(uri: status.uri, account: status.account, by_moderator: true) log_action :destroy, status end |