| 173 | } |
| 174 | |
| 175 | func (c *BugCache) EditComment(target entity.CombinedId, message string) (*bug.EditCommentOperation, error) { |
| 176 | author, err := c.getUserIdentity() |
| 177 | if err != nil { |
| 178 | return nil, err |
| 179 | } |
| 180 | |
| 181 | return c.EditCommentRaw(author, time.Now().Unix(), target, message, nil) |
| 182 | } |
| 183 | |
| 184 | func (c *BugCache) EditCommentRaw(author identity.Interface, unixTime int64, target entity.CombinedId, message string, metadata map[string]string) (*bug.EditCommentOperation, error) { |
| 185 | comment, err := c.Snapshot().SearchComment(target) |