diff options
Diffstat (limited to 'app/services/note_summary.rb')
-rw-r--r-- | app/services/note_summary.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/note_summary.rb b/app/services/note_summary.rb index 6fe14939aaa..0f2555b9ff0 100644 --- a/app/services/note_summary.rb +++ b/app/services/note_summary.rb @@ -4,9 +4,9 @@ class NoteSummary attr_reader :note attr_reader :metadata - def initialize(noteable, project, author, body, action: nil, commit_count: nil) + def initialize(noteable, project, author, body, action: nil, commit_count: nil, created_at: nil) @note = { noteable: noteable, - created_at: noteable.system_note_timestamp, + created_at: created_at || noteable.system_note_timestamp, project: project, author: author, note: body } @metadata = { action: action, commit_count: commit_count }.compact |