diff options
author | 6543 <6543@obermui.de> | 2020-02-28 09:16:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 05:16:41 -0300 |
commit | 694f44660f51aa2e8be920c49461380b7db64755 (patch) | |
tree | c3b8ad0b6b3660c8e0a4c633d372f116df493fc0 /models/notification.go | |
parent | 513b962c1df0921681e76ea6a1a2b8871bc13af4 (diff) | |
download | gitea-694f44660f51aa2e8be920c49461380b7db64755.tar.gz gitea-694f44660f51aa2e8be920c49461380b7db64755.zip |
inform participants on UI too (#10473)
* inform participants on UI too
* ajust test
* refactor getParticipantIDsByIssue
Diffstat (limited to 'models/notification.go')
-rw-r--r-- | models/notification.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/models/notification.go b/models/notification.go index a7a65c38a4..05b0e92c9b 100644 --- a/models/notification.go +++ b/models/notification.go @@ -159,6 +159,13 @@ func createOrUpdateIssueNotifications(e Engine, issueID, commentID int64, notifi for _, id := range repoWatches { toNotify[id] = struct{}{} } + issueParticipants, err := issue.getParticipantIDsByIssue(e) + if err != nil { + return err + } + for _, id := range issueParticipants { + toNotify[id] = struct{}{} + } // dont notify user who cause notification delete(toNotify, notificationAuthorID) |