From 2566e314e8351ffbceae9a2688d90a5c811d49e5 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Fri, 22 Jan 2021 21:12:26 -0800 Subject: client to server conversion --- OutboxPost.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OutboxPost.go') diff --git a/OutboxPost.go b/OutboxPost.go index 84810c9..9fb8710 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -66,9 +66,9 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { w.Write([]byte(id)) return } - + w.WriteHeader(http.StatusForbidden) - w.Write([]byte("could not authenticate")) + w.Write([]byte("captcha could not auth")) } else { activity = GetActivityFromJson(r, db) @@ -528,6 +528,7 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { case "Follow": for _, e := range activity.To { + if GetActorFromDB(db, e).Id != "" { response := AcceptFollow(activity) response = SetActorFollowerDB(db, response) -- cgit v1.2.3