diff options
Diffstat (limited to 'app/models/audit_event.rb')
-rw-r--r-- | app/models/audit_event.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/audit_event.rb b/app/models/audit_event.rb index 35c4e08730e..8e8e9389e2d 100644 --- a/app/models/audit_event.rb +++ b/app/models/audit_event.rb @@ -69,8 +69,7 @@ class AuditEvent < ApplicationRecord end def author - lazy_author&.itself.presence || - ::Gitlab::Audit::NullAuthor.for(author_id, (self[:author_name] || details[:author_name])) + lazy_author&.itself.presence || default_author_value end def lazy_author @@ -98,7 +97,7 @@ class AuditEvent < ApplicationRecord end def default_author_value - ::Gitlab::Audit::NullAuthor.for(author_id, (self[:author_name] || details[:author_name])) + ::Gitlab::Audit::NullAuthor.for(author_id, self) end def parallel_persist |