mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Trust level change logs the target_user_id
This commit is contained in:
parent
b0848db6de
commit
949b2068a5
@ -24,7 +24,8 @@ class StaffActionLogger
|
||||
StaffActionLog.create!(
|
||||
action: StaffActionLog.actions[:change_trust_level],
|
||||
staff_user_id: @admin.id,
|
||||
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + "new trust level: #{new_trust_level}"
|
||||
target_user_id: user.id,
|
||||
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + ", new trust level: #{new_trust_level}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user