aboutsummaryrefslogtreecommitdiffstats
path: root/bug/timeline.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-04-18 20:37:47 +0200
committerGitHub <noreply@github.com>2021-04-18 20:37:47 +0200
commit24155156223595e48f215e87cf9ce7895e22f4a7 (patch)
tree84bb7a57e62f376068241bf911fa43b3694a1eb1 /bug/timeline.go
parent718aa5f6e382b9c09caf866215358238ce6b5004 (diff)
parent6a5ffd94e0c7a2b9373981f99c4798eda601f4da (diff)
downloadgit-bug-24155156223595e48f215e87cf9ce7895e22f4a7.tar.gz
Merge pull request #631 from MichaelMure/comment-edit
Fix ID string in order to find correct bug instance on comment edit operation
Diffstat (limited to 'bug/timeline.go')
-rw-r--r--bug/timeline.go5
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,