diff options
author | FChannel <> | 2021-06-06 12:39:06 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-06 12:39:06 -0700 |
commit | 42cf749f7923ac33194ab87b8dce060f46a220bc (patch) | |
tree | 0daa34a13de81003608d0c3df6ded9a7d4eb793a /outboxPost.go | |
parent | 54cf6163db11855696e4f81623a4bae1cb040f2e (diff) |
signature verify arguments mixed up fix
Diffstat (limited to 'outboxPost.go')
-rw-r--r-- | outboxPost.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/outboxPost.go b/outboxPost.go index 2a06211..83859ad 100644 --- a/outboxPost.go +++ b/outboxPost.go @@ -544,11 +544,12 @@ func CheckCaptcha(db *sql.DB, captcha string) bool { func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { activity := GetActivityFromJson(r, db) - // if !VerifyHeaderSignature(r, *activity.Actor) { - // response := RejectActivity(activity) - // MakeActivityRequest(db, response) - // return - // } + if !VerifyHeaderSignature(r, *activity.Actor) { + fmt.Println(*activity.Actor) + response := RejectActivity(activity) + MakeActivityRequest(db, response) + return + } switch(activity.Type) { case "Create": |