mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Refactor mail notification (#5110)
* mail notification implement interface * fix file comment year * use NullNotifier as parent struct of notifiers
This commit is contained in:
		@@ -8,6 +8,7 @@ import (
 | 
			
		||||
	"code.gitea.io/git"
 | 
			
		||||
	"code.gitea.io/gitea/models"
 | 
			
		||||
	"code.gitea.io/gitea/modules/notification/base"
 | 
			
		||||
	"code.gitea.io/gitea/modules/notification/mail"
 | 
			
		||||
	"code.gitea.io/gitea/modules/notification/ui"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@@ -23,6 +24,7 @@ func RegisterNotifier(notifier base.Notifier) {
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	RegisterNotifier(ui.NewNotifier())
 | 
			
		||||
	RegisterNotifier(mail.NewNotifier())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NotifyCreateIssueComment notifies issue comment related message to notifiers
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user