mirror of
https://github.com/gogs/gogs.git
synced 2026-01-18 13:22:18 +01:00
models/issue_mail: don't send email to non-active users (#5788)
Fixes #5782
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user