diff options
author | Unknwon <u@gogs.io> | 2015-08-12 18:44:09 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-12 18:44:09 +0800 |
commit | ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6 (patch) | |
tree | 3d26bdab507d7ea66f3f59e2542b1d535e48ec19 /routers | |
parent | b4c0b7b98b925eb470d361d9e90d0032770513ff (diff) | |
download | gitea-ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6.tar.gz gitea-ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6.zip |
add comment form UI
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 8fcb51528e..53f5cf5d48 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -441,11 +441,11 @@ func ViewIssue(ctx *middleware.Context) { } if ctx.IsSigned { - // // Update issue-user. - // if err = models.UpdateIssueUserPairByRead(ctx.User.Id, issue.ID); err != nil { - // ctx.Handle(500, "UpdateIssueUserPairByRead: %v", err) - // return - // } + // Update issue-user. + if err = issue.ReadBy(ctx.User.Id); err != nil { + ctx.Handle(500, "ReadBy: %v", err) + return + } if ctx.User.IsAdmin { // labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID) |