| 102 | } |
| 103 | |
| 104 | func NewEditCommentOp(author identity.Interface, unixTime int64, target entity.Id, message string, files []repository.Hash) *EditCommentOperation { |
| 105 | return &EditCommentOperation{ |
| 106 | OpBase: dag.NewOpBase(EditCommentOp, author, unixTime), |
| 107 | Target: target, |
| 108 | Message: message, |
| 109 | Files: files, |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // EditComment is a convenience function to apply the operation |
| 114 | func EditComment(b Interface, author identity.Interface, unixTime int64, target entity.Id, message string, files []repository.Hash, metadata map[string]string) (entity.CombinedId, *EditCommentOperation, error) { |