From a4b579d75d805d74c7791ed919674c8ab2c9ac92 Mon Sep 17 00:00:00 2001 From: Azareal Date: Thu, 28 Feb 2019 17:34:56 +1000 Subject: [PATCH] Whoops, this should fix the SIGSEGV. --- common/routes_common.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/routes_common.go b/common/routes_common.go index eb36146b..a3da8508 100644 --- a/common/routes_common.go +++ b/common/routes_common.go @@ -194,16 +194,16 @@ func userCheck(w http.ResponseWriter, r *http.Request, user *User) (header *Head } header = &Header{ - Site: Site, - Settings: SettingBox.Load().(SettingMap), - Themes: Themes, - Theme: theme, - CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function - Hooks: GetHookTable(), - Zone: "frontend", - Writer: w, - GoogSiteVerify: header.Settings["google_site_verify"].(string), + Site: Site, + Settings: SettingBox.Load().(SettingMap), + Themes: Themes, + Theme: theme, + CurrentUser: *user, // ! Some things rely on this being a pointer downstream from this function + Hooks: GetHookTable(), + Zone: "frontend", + Writer: w, } + header.GoogSiteVerify = header.Settings["google_site_verify"].(string) if user.IsBanned { header.AddNotice("account_banned")