From 68b0fdd2b3efa4d547237c4b51d5b37be3da2923 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 22 Nov 2021 19:44:20 +0100 Subject: [PATCH] DEV: Fix silence user context message (#15040) --- app/services/user_silencer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/user_silencer.rb b/app/services/user_silencer.rb index fc74af58da9..10c3b1c74a4 100644 --- a/app/services/user_silencer.rb +++ b/app/services/user_silencer.rb @@ -35,7 +35,7 @@ class UserSilencer @opts[:message_body] ).format - context = "#{message_type}: '#{post.topic&.title rescue ''}' #{@opts[:reason]}" + context = "#{message_type}: #{@opts[:reason]}" if @by_user log_params = { context: context, details: details }