From 8453a060c37644ce4d87d351c647b48acf82e536 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 17 Jul 2021 15:07:24 -0700 Subject: routing corrections --- main.go | 14 +++++++------- static/faq.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 3959dae..4327e44 100644 --- a/main.go +++ b/main.go @@ -531,14 +531,14 @@ func main() { if FingerActor(follow).Id != ""{ MakeActivityRequestOutbox(db, followActivity) } - - var redirect string - if(actor.Name != "main") { - redirect = "/" + actor.Name - } - - http.Redirect(w, r, "/" + *Key + "/" + redirect, http.StatusSeeOther) } + + var redirect string + if(actor.Name != "main") { + redirect = "/" + actor.Name + } + + http.Redirect(w, r, "/" + *Key + "/" + redirect, http.StatusSeeOther) } else if manage && actor.Name != "" { t := template.Must(template.New("").Funcs(template.FuncMap{ "sub": func (i, j int) int { return i - j }}).ParseFiles("./static/main.html", "./static/manage.html")) diff --git a/static/faq.html b/static/faq.html index 08a38f4..9baf8ca 100644 --- a/static/faq.html +++ b/static/faq.html @@ -56,7 +56,7 @@
Soon™.
v0.0.10-dev
+v0.0.11-dev