mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-28 12:46:09 +01:00
Fixed Poster/Commenter-bug and clean-up
This commit is contained in:
parent
2665728ee7
commit
b31c7fe074
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue