From 06b0575fa77b76eaface422d02cf9f68f2b475d5 Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Fri, 11 Jul 2025 00:53:54 +0800 Subject: [PATCH] UPDATE Co-authored-by: wxiaoguang Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com> --- routers/web/user/setting/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/user/setting/notifications.go b/routers/web/user/setting/notifications.go index 7aa67a5ce4..cd62d2dac3 100644 --- a/routers/web/user/setting/notifications.go +++ b/routers/web/user/setting/notifications.go @@ -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 }