0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-13 07:04:43 +02:00
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com>
This commit is contained in:
NorthRealm 2025-07-11 00:53:54 +08:00 committed by GitHub
parent 5a7e9c104b
commit 06b0575fa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ func Notifications(ctx *context.Context) {
// SetGlobalEmailNotificationPreference set user's email notification preference
func SetGlobalEmailNotificationPreference(ctx *context.Context) {
if !setting.Service.EnableNotifyMail {
ctx.NotFound(errors.New("NotifyMail not enabled"))
ctx.NotFound(nil)
return
}