From b31c7fe074dae7e51a4b2cd6aa1a9d6f2318b767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Tue, 26 Jan 2016 17:53:10 +0100 Subject: [PATCH] Fixed Poster/Commenter-bug and clean-up --- routers/repo/issue.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 80929dd77b..9a6c370137 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -627,15 +627,13 @@ func ViewIssue(ctx *middleware.Context) { break } } - if !already_added { + if !already_added && !issue.IsPoster(comment.Poster.Id) { participants = append(participants, comment.Poster) } } } ctx.Data["Participants"] = participants - - ctx.Data["Issue"] = issue ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id)) ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login"