Browse Source

Fixed Poster/Commenter-bug and clean-up

tags/v1.2.0-rc1
Kim "BKC" Carlbäcker 9 years ago
parent
commit
fefb2d1df9
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      routers/repo/issue.go

+ 1
- 3
routers/repo/issue.go View File

@@ -627,15 +627,13 @@ func ViewIssue(ctx *middleware.Context) {
break break
} }
} }
if !already_added {
if !already_added && !issue.IsPoster(comment.Poster.Id) {
participants = append(participants, comment.Poster) participants = append(participants, comment.Poster)
} }
} }
} }


ctx.Data["Participants"] = participants ctx.Data["Participants"] = participants


ctx.Data["Issue"] = issue ctx.Data["Issue"] = issue
ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id)) ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id))
ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login" ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login"


Loading…
Cancel
Save