diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 36c1b5e51b8..808beed3794 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -53,6 +53,7 @@ en: purge_reason: "Automatically deleted as abandoned, deactivated account" disable_remote_images_download_reason: "Remote images download was disabled because there wasn't enough disk space available." anonymous: "Anonymous" + remove_posts_deleted_by_author: "Deleted by author" emails: incoming: diff --git a/lib/post_destroyer.rb b/lib/post_destroyer.rb index ec4047bce18..49fd91b887d 100644 --- a/lib/post_destroyer.rb +++ b/lib/post_destroyer.rb @@ -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