0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-19 23:38:29 +02:00
This commit is contained in:
NorthRealm 2025-07-09 11:59:23 +08:00
parent 0dd3b4bd1e
commit 472124bd1c

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.HTTPError(http.StatusNotFound)
ctx.NotFound(errors.New("NotifyMail not enabled"))
return
}