mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-13 15:44:44 +02:00
UPDATE
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com>
This commit is contained in:
parent
5a7e9c104b
commit
06b0575fa7
@ -35,7 +35,7 @@ func Notifications(ctx *context.Context) {
|
|||||||
// SetGlobalEmailNotificationPreference set user's email notification preference
|
// SetGlobalEmailNotificationPreference set user's email notification preference
|
||||||
func SetGlobalEmailNotificationPreference(ctx *context.Context) {
|
func SetGlobalEmailNotificationPreference(ctx *context.Context) {
|
||||||
if !setting.Service.EnableNotifyMail {
|
if !setting.Service.EnableNotifyMail {
|
||||||
ctx.NotFound(errors.New("NotifyMail not enabled"))
|
ctx.NotFound(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user