aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-20 01:58:28 -0400
committerUnknwon <u@gogs.io>2015-03-20 01:58:28 -0400
commit62e436e6b7a41bac2e17a26f08649c144cef5b57 (patch)
tree379be1b74989d5be2aacc68753b0d3d12597d400 /routers/repo/issue.go
parent4b9fb43a708d0aaaf710a060f7b2dd0b7ad959d0 (diff)
parente312634286e68d8fac4d20adb729661f8a444b2a (diff)
Merge branch 'develop' of github.com:gogits/gogs into release/0.6.1
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index abe33beb..294d3d28 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -270,12 +270,12 @@ func CreateIssuePost(ctx *middleware.Context, form auth.CreateIssueForm) {
}
act := &models.Action{
- ActUserId: ctx.User.Id,
+ ActUserID: ctx.User.Id,
ActUserName: ctx.User.Name,
ActEmail: ctx.User.Email,
OpType: models.CREATE_ISSUE,
Content: fmt.Sprintf("%d|%s", issue.Index, issue.Name),
- RepoId: ctx.Repo.Repository.Id,
+ RepoID: ctx.Repo.Repository.Id,
RepoUserName: ctx.Repo.Owner.Name,
RepoName: ctx.Repo.Repository.Name,
RefName: ctx.Repo.BranchName,
@@ -845,12 +845,12 @@ func Comment(ctx *middleware.Context) {
// Notify watchers.
act := &models.Action{
- ActUserId: ctx.User.Id,
+ ActUserID: ctx.User.Id,
ActUserName: ctx.User.LowerName,
ActEmail: ctx.User.Email,
OpType: models.COMMENT_ISSUE,
Content: fmt.Sprintf("%d|%s", issue.Index, strings.Split(content, "\n")[0]),
- RepoId: ctx.Repo.Repository.Id,
+ RepoID: ctx.Repo.Repository.Id,
RepoUserName: ctx.Repo.Owner.LowerName,
RepoName: ctx.Repo.Repository.LowerName,
}