From 5a7e9c104bf637d9d489f0a99064957cd9df84da Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Fri, 11 Jul 2025 00:53:44 +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 ecb7b80620..7aa67a5ce4 100644 --- a/routers/web/user/setting/notifications.go +++ b/routers/web/user/setting/notifications.go @@ -21,7 +21,7 @@ const tplSettingsNotifications templates.TplName = "user/settings/notifications" // Notifications render user's notifications settings func Notifications(ctx *context.Context) { if !setting.Service.EnableNotifyMail { - ctx.NotFound(errors.New("NotifyMail not enabled")) + ctx.NotFound(nil) return }