diff options
Diffstat (limited to 'bug/timeline.go')
-rw-r--r-- | bug/timeline.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bug/timeline.go b/bug/timeline.go index 5a51f516..a5ca4da5 100644 --- a/bug/timeline.go +++ b/bug/timeline.go @@ -26,6 +26,7 @@ type CommentHistoryStep struct { // CommentTimelineItem is a TimelineItem that holds a Comment and its edition history type CommentTimelineItem struct { + // id should be the same as in Comment id entity.Id Author identity.Interface Message string @@ -35,9 +36,9 @@ type CommentTimelineItem struct { History []CommentHistoryStep } -func NewCommentTimelineItem(ID entity.Id, comment Comment) CommentTimelineItem { +func NewCommentTimelineItem(comment Comment) CommentTimelineItem { return CommentTimelineItem{ - id: ID, + id: comment.id, Author: comment.Author, Message: comment.Message, Files: comment.Files, |