We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a004a6 commit 240f46aCopy full SHA for 240f46a
routers/user/setting/account.go
@@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
28
ctx.Data["Title"] = ctx.Tr("settings")
29
ctx.Data["PageIsSettingsAccount"] = true
30
ctx.Data["Email"] = ctx.User.Email
31
- ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
32
33
loadAccountData(ctx)
34
@@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
230
229
return
231
}
232
ctx.Data["Emails"] = emails
+ ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
233
0 commit comments