From 472124bd1c9e7c3b3b89de7ca946b68b85e9473a Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Wed, 9 Jul 2025 11:59:23 +0800 Subject: [PATCH] MOVE --- 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 9e10568fa4..ecb7b80620 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.HTTPError(http.StatusNotFound) + ctx.NotFound(errors.New("NotifyMail not enabled")) return }