mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Staff action logs explain when system is deleting a post because author marked it to be deleted
This commit is contained in:
parent
fc0a0a76a4
commit
e84fcc7d74
2 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ class PostDestroyer
|
|||
pa.post_action_type_id IN (?)
|
||||
)", PostActionType.notify_flag_type_ids)
|
||||
.each do |post|
|
||||
PostDestroyer.new(Discourse.system_user, post).destroy
|
||||
PostDestroyer.new(Discourse.system_user, post, {context: I18n.t('remove_posts_deleted_by_author')}).destroy
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue