diff options
author | FChannel <=> | 2021-01-22 21:12:26 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-22 21:12:26 -0800 |
commit | 2566e314e8351ffbceae9a2688d90a5c811d49e5 (patch) | |
tree | e802622593c540265e464beecf76696b65e229ed /OutboxPost.go | |
parent | 626fee35bacd68baf6e9bb38ca71d88fff700b13 (diff) |
client to server conversion
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) |