FIX: Show the username of the person who banned the user

This commit is contained in:
Robin Ward 2018-03-29 16:44:39 -04:00
parent e59507e366
commit 97079ccf38
1 changed files with 1 additions and 1 deletions

View File

@ -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]
)