diff options
Diffstat (limited to 'routers/repo/issue.go')
-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) |