From aa509a3d8ae00f32fb318dd08ba8a95229a35533 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 10 Oct 2019 18:47:24 +0200 Subject: Fix auto-report string saying the account has been auto-silenced (#12142) --- app/lib/spam_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib/spam_check.rb') diff --git a/app/lib/spam_check.rb b/app/lib/spam_check.rb index 235e44230..5b40514fd 100644 --- a/app/lib/spam_check.rb +++ b/app/lib/spam_check.rb @@ -135,7 +135,7 @@ class SpamCheck def auto_report_status! status_ids = Status.where(visibility: %i(public unlisted)).where(id: matching_status_ids).pluck(:id) + [@status.id] if @status.distributable? - ReportService.new.call(Account.representative, @account, status_ids: status_ids, comment: I18n.t('spam_check.spam_detected_and_silenced')) + ReportService.new.call(Account.representative, @account, status_ids: status_ids, comment: I18n.t('spam_check.spam_detected')) end def already_flagged? -- cgit