From ab2d0b3b442a2dc9ad0197f6e97760f5dd6148d6 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 12 Aug 2015 18:44:09 +0800 Subject: add comment form UI --- routers/repo/issue.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'routers/repo/issue.go') diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 8fcb5152..53f5cf5d 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) -- cgit v1.2.3