aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 8 insertions, 9 deletions
diff --git a/main.go b/main.go
index 2d2831b..3959dae 100644
--- a/main.go
+++ b/main.go
@@ -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"))