(comment Comment)
| 36 | } |
| 37 | |
| 38 | func NewCommentTimelineItem(comment Comment) CommentTimelineItem { |
| 39 | return CommentTimelineItem{ |
| 40 | // id: comment.id, |
| 41 | combinedId: comment.combinedId, |
| 42 | Author: comment.Author, |
| 43 | Message: comment.Message, |
| 44 | Files: comment.Files, |
| 45 | CreatedAt: comment.unixTime, |
| 46 | LastEdit: comment.unixTime, |
| 47 | History: []CommentHistoryStep{ |
| 48 | { |
| 49 | Message: comment.Message, |
| 50 | UnixTime: comment.unixTime, |
| 51 | }, |
| 52 | }, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func (c *CommentTimelineItem) CombinedId() entity.CombinedId { |
| 57 | return c.combinedId |