From 466facc0097bf636b6a945a0daebb7c4c5c33c91 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 17 Mar 2015 21:51:39 -0400 Subject: #1067: Deleting users should remove them from collaborator lists - fix delete user but repository watches are not decreased --- routers/repo/issue.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'routers/repo') 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, } -- cgit v1.2.3