FIX: Simplify post and topic deletion language (#13128)

Based on feedback from Matt Haughey, we don't need to use so many words when describing a deleted topic or post.

Co-authored-by: Martin Brennan <martin@discourse.org>
This commit is contained in:
Jeff Atwood
2021-05-25 12:04:10 +10:00
committed by GitHub
co-authored by Martin Brennan
parent fccf4d4375
commit 50926f6143
5 changed files with 10 additions and 19 deletions
+2 -2
View File
@@ -381,7 +381,7 @@ describe PostDestroyer do
expect(post2.deleted_at).to be_blank
expect(post2.deleted_by).to be_blank
expect(post2.user_deleted).to eq(true)
expect(post2.raw).to eq(I18n.t('js.topic.deleted_by_author', count: 24))
expect(post2.raw).to eq(I18n.t('js.topic.deleted_by_author_simple'))
expect(post2.version).to eq(2)
expect(called).to eq(1)
expect(user_stat.reload.post_count).to eq(0)
@@ -462,7 +462,7 @@ describe PostDestroyer do
expect(post.deleted_at).to eq(nil)
expect(post.user_deleted).to eq(true)
expect(post.raw).to eq(I18n.t('js.post.deleted_by_author', count: 1))
expect(post.raw).to eq(I18n.t('js.post.deleted_by_author_simple'))
end
context "as a moderator" do