aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-18 13:02:03 -0800
committerFChannel <=>2021-01-18 13:02:03 -0800
commit02e5d46ed214d0efbc3fc566dea7f10415e3fadf (patch)
treee8400860239da186780b6ca2277232284fd9e05f /main.go
parent7ef5c8866930a887d866c92301069e5719c4b11e (diff)
fix for syncing local and remote post count totals
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.go b/main.go
index 3fdc9d3..bf714e8 100644
--- a/main.go
+++ b/main.go
@@ -26,10 +26,10 @@ var authReq = []string{"captcha","email","passphrase"}
var supportedFiles = []string{"image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/avif","image/apng","video/mp4","video/ogg","video/webm","audio/mpeg","audio/ogg","audio/wav", "audio/wave", "audio/x-wav"}
-var SiteEmail string //contact@fchan.xyz
-var SiteEmailPassword string
-var SiteEmailServer string //mail.fchan.xyz
-var SiteEmailPort string //587
+var SiteEmail = GetConfigValue("emailaddress") //contact@fchan.xyz
+var SiteEmailPassword = GetConfigValue("emailpass")
+var SiteEmailServer = GetConfigValue("emailserver") //mail.fchan.xyz
+var SiteEmailPort = GetConfigValue("emailport") //587
type BoardAccess struct {
boards []string
@@ -104,7 +104,6 @@ func main() {
}
}
-
if mainActor {
GetActorInfo(w, db, Domain)
} else if mainInbox {