summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-26 17:53:10 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-26 17:55:54 +0100
commitb31c7fe074dae7e51a4b2cd6aa1a9d6f2318b767 (patch)
tree451b730ada0700cbc0fc64616e0ff3611e3b3c45 /routers/repo/issue.go
parent2665728ee75c05be3555c683ada3b5a1e60a83da (diff)
downloadgitea-b31c7fe074dae7e51a4b2cd6aa1a9d6f2318b767.tar.gz
gitea-b31c7fe074dae7e51a4b2cd6aa1a9d6f2318b767.zip
Fixed Poster/Commenter-bug and clean-up
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go4
1 files changed, 1 insertions, 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"