mirror of
https://github.com/gogs/gogs.git
synced 2025-09-04 19:37:58 +00:00
models/issue_mail: don't send email to non-active users (#5788)
Fixes #5782
This commit is contained in:
parent
2f0cdfd564
commit
ddc7a2dd4d
@ -125,7 +125,7 @@ func mailIssueCommentToParticipants(issue *Issue, doer *User, mentions []string)
|
||||
if err != nil {
|
||||
return fmt.Errorf("GetUserByID [%d]: %v", watchers[i].UserID, err)
|
||||
}
|
||||
if to.IsOrganization() {
|
||||
if to.IsOrganization() || !to.IsActive {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user