aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_cache.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cache/bug_cache.go b/cache/bug_cache.go
index 965ebe94..b86b31e0 100644
--- a/cache/bug_cache.go
+++ b/cache/bug_cache.go
@@ -210,17 +210,17 @@ func (c *BugCache) SetTitleRaw(author *IdentityCache, unixTime int64, title stri
return op, c.notifyUpdated()
}
-func (c *BugCache) EditBody(body string) (*bug.EditCommentOperation, error) {
+func (c *BugCache) EditCreateComment(body string) (*bug.EditCommentOperation, error) {
author, err := c.repoCache.GetUserIdentity()
if err != nil {
return nil, err
}
- return c.EditBodyRaw(author, time.Now().Unix(), body, nil)
+ return c.EditCreateCommentRaw(author, time.Now().Unix(), body, nil)
}
-func (c *BugCache) EditBodyRaw(author *IdentityCache, unixTime int64, body string, metadata map[string]string) (*bug.EditCommentOperation, error) {
- op, err := bug.EditBody(c.bug, author.Identity, unixTime, body)
+func (c *BugCache) EditCreateCommentRaw(author *IdentityCache, unixTime int64, body string, metadata map[string]string) (*bug.EditCommentOperation, error) {
+ op, err := bug.EditCreateComment(c.bug, author.Identity, unixTime, body)
if err != nil {
return nil, err
}