diff --git a/template_list.go b/template_list.go index 69a0fe69..ff2ad7e3 100644 --- a/template_list.go +++ b/template_list.go @@ -225,7 +225,7 @@ var topic_85 []byte = []byte(`
-
+
@@ -408,7 +408,7 @@ var topic_alt_86 []byte = []byte(`
-
+
diff --git a/templates/account-own-edit-avatar.html b/templates/account-own-edit-avatar.html index 0afddd69..8371ba5e 100644 --- a/templates/account-own-edit-avatar.html +++ b/templates/account-own-edit-avatar.html @@ -13,7 +13,7 @@
diff --git a/templates/account-own-edit-username.html b/templates/account-own-edit-username.html index f42c272d..7665b9c3 100644 --- a/templates/account-own-edit-username.html +++ b/templates/account-own-edit-username.html @@ -12,7 +12,7 @@
diff --git a/templates/account-own-edit.html b/templates/account-own-edit.html index e02ca811..4066b2e0 100644 --- a/templates/account-own-edit.html +++ b/templates/account-own-edit.html @@ -8,15 +8,15 @@
diff --git a/templates/areyousure.html b/templates/are-you-sure.html similarity index 100% rename from templates/areyousure.html rename to templates/are-you-sure.html diff --git a/templates/create-topic.html b/templates/create-topic.html index 4e177147..a495ad39 100644 --- a/templates/create-topic.html +++ b/templates/create-topic.html @@ -13,11 +13,11 @@
-
+
diff --git a/templates/custom_page.html b/templates/custom-page.html similarity index 100% rename from templates/custom_page.html rename to templates/custom-page.html diff --git a/templates/login.html b/templates/login.html index 4dd03b5a..3ea09bd0 100644 --- a/templates/login.html +++ b/templates/login.html @@ -6,11 +6,11 @@
-
+
diff --git a/templates/register.html b/templates/register.html index 2b33f450..aabe2b0c 100644 --- a/templates/register.html +++ b/templates/register.html @@ -8,19 +8,19 @@
-
+
-
+
diff --git a/templates/topic.html b/templates/topic.html index 0bb1b7a1..6c4d2fd4 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -82,7 +82,7 @@
-
+
diff --git a/templates/topic_alt.html b/templates/topic_alt.html index a4400d5f..51bdd349 100644 --- a/templates/topic_alt.html +++ b/templates/topic_alt.html @@ -83,7 +83,7 @@
-
+
diff --git a/user.go b/user.go index 376f7680..0d23979a 100644 --- a/user.go +++ b/user.go @@ -351,7 +351,7 @@ func words_to_score(wcount int, topic bool) (score int) { score = 1 } - settings := settingBox.Load().(map[string]interface{}) + settings := settingBox.Load().(SettingBox) if wcount >= settings["megapost_min_words"].(int) { score += 4 } else if wcount >= settings["bigpost_min_words"].(int) { @@ -371,7 +371,7 @@ func increase_post_user_stats(wcount int, uid int, topic bool, user User) error base_score = 2 } - settings := settingBox.Load().(map[string]interface{}) + settings := settingBox.Load().(SettingBox) if wcount >= settings["megapost_min_words"].(int) { _, err := increment_user_megaposts_stmt.Exec(1,1,1,uid) if err != nil { @@ -411,7 +411,7 @@ func decrease_post_user_stats(wcount int, uid int, topic bool, user User) error base_score = -2 } - settings := settingBox.Load().(map[string]interface{}) + settings := settingBox.Load().(SettingBox) if wcount >= settings["megapost_min_words"].(int) { _, err := increment_user_megaposts_stmt.Exec(-1,-1,-1,uid) if err != nil {