]> source.dussan.org Git - gitea.git/commit
[refactor] mailer service (#15072)
author6543 <6543@obermui.de>
Fri, 2 Apr 2021 10:25:13 +0000 (12:25 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 10:25:13 +0000 (11:25 +0100)
commit80d6c6d7deb3f6a38ff6d09ec38ffb04de9da726
tree8651abe082da4e920753f03ee4c37de1668ab826
parentcc2d540092149166c9a0cef886b2e952ac9c75d7
[refactor] mailer service (#15072)

* Unexport SendUserMail

* Instead of "[]*models.User" or "[]string" lists infent "[]*MailRecipient" for mailer

* adopt

* code format

* TODOs for "i18n"

* clean

* no fallback for lang -> just use english

* lint

* exec testComposeIssueCommentMessage per lang and use only emails

* rm MailRecipient

* Dont reload from users from db if you alredy have in ram

* nits

* minimize diff

Signed-off-by: 6543 <6543@obermui.de>
* localize subjects

* linter ...

* Tr extend

* start tmpl edit ...

* Apply suggestions from code review

* use translation.Locale

* improve mailIssueCommentBatch

Signed-off-by: Andrew Thornton <art27@cantab.net>
* add i18n to datas

Signed-off-by: Andrew Thornton <art27@cantab.net>
* a comment

Co-authored-by: Andrew Thornton <art27@cantab.net>
15 files changed:
models/user.go
modules/notification/mail/mail.go
options/locale/locale_en-US.ini
routers/admin/users.go
routers/api/v1/admin/user.go
routers/user/auth.go
routers/user/setting/account.go
services/mailer/mail.go
services/mailer/mail_comment.go
services/mailer/mail_issue.go
services/mailer/mail_release.go
services/mailer/mail_repo.go
services/mailer/mail_test.go
services/mailer/mailer.go
templates/mail/notify/repo_transfer.tmpl