diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-24 12:47:55 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-24 12:47:55 -0400 |
commit | da0240aacd5646bd73b2e22d92d88578dbafd64b (patch) | |
tree | 3c101530bc7f1b9f4677cab0be4e8a3e4175c50b /models/action.go | |
parent | 3db84c889365a559a6ea81ad4e7dd4a5f089d249 (diff) | |
parent | 9a7349ce64afdbc528126862283b1068d4c8699a (diff) | |
download | gitea-da0240aacd5646bd73b2e22d92d88578dbafd64b.tar.gz gitea-da0240aacd5646bd73b2e22d92d88578dbafd64b.zip |
Merge pull request #307 from nuss-justin/feature/attachments
Feature: Ability to attach files to issues (attachments)
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 82d65de3fb..0342abf5e3 100644 --- a/models/action.go +++ b/models/action.go @@ -127,7 +127,7 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com url := fmt.Sprintf("/%s/%s/commit/%s", repoUserName, repoName, c.Sha1) message := fmt.Sprintf(`<a href="%s">%s</a>`, url, c.Message) - if err = CreateComment(userId, issue.RepoId, issue.Id, 0, 0, COMMIT, message); err != nil { + if _, err = CreateComment(userId, issue.RepoId, issue.Id, 0, 0, COMMIT, message, nil); err != nil { return err } @@ -147,7 +147,7 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com } // If commit happened in the referenced repository, it means the issue can be closed. - if err = CreateComment(userId, repoId, issue.Id, 0, 0, CLOSE, ""); err != nil { + if _, err = CreateComment(userId, repoId, issue.Id, 0, 0, CLOSE, "", nil); err != nil { return err } } |