From 1878e4e7de3ffd2cb90f69221e86bfd585315483 Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Fri, 11 Jul 2025 00:55:28 +0800 Subject: [PATCH] update --- routers/web/user/setting/notifications.go | 4 ++-- routers/web/web.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/web/user/setting/notifications.go b/routers/web/user/setting/notifications.go index cd62d2dac3..16e58a0481 100644 --- a/routers/web/user/setting/notifications.go +++ b/routers/web/user/setting/notifications.go @@ -32,8 +32,8 @@ func Notifications(ctx *context.Context) { ctx.HTML(http.StatusOK, tplSettingsNotifications) } -// SetGlobalEmailNotificationPreference set user's email notification preference -func SetGlobalEmailNotificationPreference(ctx *context.Context) { +// NotificationsEmailPost set user's email notification preference +func NotificationsEmailPost(ctx *context.Context) { if !setting.Service.EnableNotifyMail { ctx.NotFound(nil) return diff --git a/routers/web/web.go b/routers/web/web.go index bdeab9aa9d..b9c7013f63 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -597,7 +597,7 @@ func registerWebRoutes(m *web.Router) { }) m.Group("/notifications", func() { m.Get("", user_setting.Notifications) - m.Post("/email", user_setting.SetGlobalEmailNotificationPreference) + m.Post("/email", user_setting.NotificationsEmailPost) }) m.Group("/security", func() { m.Get("", security.Security)