|
|
@@ -55,7 +55,7 @@ func Settings(c *context.Context) {
|
|
|
c.Data["status"] = c.User.Status
|
|
|
c.Data["themecolor"] = c.User.ThemeColor
|
|
|
c.Data["is_beta"] = c.User.IsBeta
|
|
|
- c.Data["show_sponsors"] = c.User.ShowSponsors
|
|
|
+ c.Data["show_ads"] = c.User.ShowAds
|
|
|
c.Data["private_email"] = c.User.PrivateEmail
|
|
|
c.Success(SETTINGS_PROFILE)
|
|
|
}
|
|
|
@@ -112,7 +112,7 @@ func SettingsPost(c *context.Context, f form.UpdateProfile) {
|
|
|
c.User.Status = f.Status
|
|
|
c.User.ThemeColor = f.ThemeColor
|
|
|
c.User.IsBeta = f.IsBeta
|
|
|
- c.User.ShowSponsors = f.ShowSponsors
|
|
|
+ c.User.ShowAds = f.ShowAds
|
|
|
c.User.PrivateEmail = f.PrivateEmail
|
|
|
|
|
|
if err := models.UpdateUser(c.User); err != nil {
|