]> source.dussan.org Git - gitea.git/commit
Rewrite delivery of issue and comment mails (#9009)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Mon, 18 Nov 2019 08:08:20 +0000 (05:08 -0300)
committerzeripath <art27@cantab.net>
Mon, 18 Nov 2019 08:08:20 +0000 (08:08 +0000)
commit08ae6bb7edb9582c38edb8a0dba1b1be10fb00fc
treec64e9a1c9cfaeb6cd0c2ee012d3ad32c38e78ce3
parent9ff63126274b0df6e035541eafd48970c402e61e
Rewrite delivery of issue and comment mails (#9009)

* Mail issue subscribers, rework the function

* Simplify a little more

* Fix unused variable

* Refactor mail delivery to avoid heavy load on server

* Avoid splitting into too many goroutines

* Fix comments and optimize GetMaileableUsersByIDs()

* Fix return on errors
models/issue.go
models/issue_assignees.go
models/issue_watch.go
models/repo_watch.go
models/user.go
services/mailer/mail.go
services/mailer/mail_comment.go
services/mailer/mail_issue.go
services/mailer/mail_test.go
services/mailer/mailer.go