diff options
author | FChannel <> | 2021-07-17 13:26:36 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-17 13:26:36 -0700 |
commit | f93f32ee27fbd3afbccf30fb55550a1ee6c2c2a2 (patch) | |
tree | f8f828bdc3de1e437d22bcdde5b9db974626923b /main.go | |
parent | a13a0d96f3808c17d9c50df1af400b73445f64ac (diff) |
bug fix for auto follow errors
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -528,18 +528,17 @@ func main() { return } - if FingerActor(follow).Id != "" { - MakeActivityRequestOutbox(db, followActivity) + if FingerActor(follow).Id != ""{ + MakeActivityRequestOutbox(db, followActivity) } - } - var redirect string - if(actor.Name != "main") { - redirect = "/" + actor.Name + var redirect string + if(actor.Name != "main") { + redirect = "/" + actor.Name + } + + http.Redirect(w, r, "/" + *Key + "/" + redirect, http.StatusSeeOther) } - - 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")) |