From 97079ccf384e8cad20751d8a4807a49ad559ab45 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 29 Mar 2018 16:44:39 -0400 Subject: [PATCH] FIX: Show the username of the person who banned the user --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 8ef2a7d..7948905 100644 --- a/plugin.rb +++ b/plugin.rb @@ -246,7 +246,7 @@ after_initialize do on(:user_silenced) do |details| raw_note = I18n.t( "staff_notes.user_silenced", - username: details[:user].username, + username: details[:silenced_by]&.username || '', silenced_till: I18n.l(details[:silenced_till], format: :date_only), reason: details[:reason] )