diff options
Diffstat (limited to 'app/services/system_notes/incidents_service.rb')
-rw-r--r-- | app/services/system_notes/incidents_service.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/services/system_notes/incidents_service.rb b/app/services/system_notes/incidents_service.rb index d5da684a2d8..137994baa74 100644 --- a/app/services/system_notes/incidents_service.rb +++ b/app/services/system_notes/incidents_service.rb @@ -15,18 +15,14 @@ module SystemNotes def add_timeline_event(timeline_event) author = timeline_event.author - anchor = "timeline_event_#{timeline_event.id}" - path = url_helpers.project_issues_incident_path(project, noteable, anchor: anchor) - body = "added an [incident timeline event](#{path})" + body = 'added an incident timeline event' create_note(NoteSummary.new(noteable, project, author, body, action: 'timeline_event')) end def edit_timeline_event(timeline_event, author, was_changed:) - anchor = "timeline_event_#{timeline_event.id}" - path = url_helpers.project_issues_incident_path(project, noteable, anchor: anchor) changed_text = CHANGED_TEXT.fetch(was_changed, '') - body = "edited #{changed_text}[incident timeline event](#{path})" + body = "edited #{changed_text}incident timeline event" create_note(NoteSummary.new(noteable, project, author, body, action: 'timeline_event')) end |