mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix: Suspensions and Blocks do not give enough details in logs
This commit is contained in:
parent
46487f095e
commit
cd4c34204d
1 changed files with 3 additions and 1 deletions
|
@ -225,13 +225,15 @@ module Jobs
|
|||
elsif attr == 'staff_user'
|
||||
user = User.find_by(id: staff_action.attributes['acting_user_id'])
|
||||
user.username if !user.nil?
|
||||
elsif attr == 'subject'
|
||||
user = User.find_by(id: staff_action.attributes['target_user_id'])
|
||||
user.nil? ? staff_action.attributes[attr] : "#{user.username} #{staff_action.attributes[attr]}"
|
||||
else
|
||||
staff_action.attributes[attr]
|
||||
end
|
||||
|
||||
staff_action_array.push(data)
|
||||
end
|
||||
|
||||
staff_action_array
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue