]> source.dussan.org Git - gitea.git/commitdiff
Fixed Poster/Commenter-bug and clean-up
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>
Tue, 26 Jan 2016 16:53:10 +0000 (17:53 +0100)
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>
Tue, 26 Jan 2016 16:55:54 +0000 (17:55 +0100)
routers/repo/issue.go

index 80929dd77b90d2f4184d6e21df1b51ef67d09d5d..9a6c370137c6252ab0a79c348b9ff62cd05e0ce5 100644 (file)
@@ -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"