summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-12 18:44:09 +0800
committerUnknwon <u@gogs.io>2015-08-12 18:44:09 +0800
commitab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6 (patch)
tree3d26bdab507d7ea66f3f59e2542b1d535e48ec19 /routers
parentb4c0b7b98b925eb470d361d9e90d0032770513ff (diff)
downloadgitea-ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6.tar.gz
gitea-ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6.zip
add comment form UI
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go10
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)