mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 23:34:25 +00:00
fix #14250 Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
fb656b5124
commit
bf853db450
@ -123,10 +123,14 @@ func mailIssueCommentBatch(ctx *mailCommentContext, ids []int64, visited map[int
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkUnit := models.UnitTypeIssues
|
||||||
|
if ctx.Issue.IsPull {
|
||||||
|
checkUnit = models.UnitTypePullRequests
|
||||||
|
}
|
||||||
// Make sure all recipients can still see the issue
|
// Make sure all recipients can still see the issue
|
||||||
idx := 0
|
idx := 0
|
||||||
for _, r := range recipients {
|
for _, r := range recipients {
|
||||||
if ctx.Issue.Repo.CheckUnitUser(r, models.UnitTypeIssues) {
|
if ctx.Issue.Repo.CheckUnitUser(r, checkUnit) {
|
||||||
recipients[idx] = r
|
recipients[idx] = r
|
||||||
idx++
|
idx++
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user