mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 21:23:00 +08:00
DEV: Fix silence user context message (#15040)
This commit is contained in:
parent
bd2e1a8c38
commit
68b0fdd2b3
@ -35,7 +35,7 @@ class UserSilencer
|
|||||||
@opts[:message_body]
|
@opts[:message_body]
|
||||||
).format
|
).format
|
||||||
|
|
||||||
context = "#{message_type}: '#{post.topic&.title rescue ''}' #{@opts[:reason]}"
|
context = "#{message_type}: #{@opts[:reason]}"
|
||||||
|
|
||||||
if @by_user
|
if @by_user
|
||||||
log_params = { context: context, details: details }
|
log_params = { context: context, details: details }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user