forgejo/services/mailer
wxiaoguang 65248945c9
Refactor locale&string&template related code (#29165)
Clarify when "string" should be used (and be escaped), and when
"template.HTML" should be used (no need to escape)

And help PRs like  #29059 , to render the error messages correctly.

(cherry picked from commit f3eb835886031df7a562abc123c3f6011c81eca8)

Conflicts:
	modules/web/middleware/binding.go
	routers/web/feed/convert.go
	tests/integration/branches_test.go
	tests/integration/repo_branch_test.go
	trivial context conflicts
2024-02-16 15:20:52 +01:00
..
incoming
token [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
mail.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_admin_new_user.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_admin_new_user_test.go [GITEA] notifies admins on new user registration 2024-02-05 16:09:28 +01:00
mail_comment.go
mail_issue.go Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
mail_release.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_repo.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_team_invite.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_test.go Include username in email headers (#28981) 2024-02-03 00:41:27 +00:00
mailer.go Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
mailer_test.go
main_test.go
notify.go [GITEA] notifies admins on new user registration 2024-02-05 16:09:28 +01:00