diff options
author | FChannel <> | 2021-07-17 15:07:24 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-17 15:07:24 -0700 |
commit | 8453a060c37644ce4d87d351c647b48acf82e536 (patch) | |
tree | d24b9c0d1502f58cb6ec4e0b88d0f406379fde8e /main.go | |
parent | f93f32ee27fbd3afbccf30fb55550a1ee6c2c2a2 (diff) |
routing corrections
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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")) |