From f93f32ee27fbd3afbccf30fb55550a1ee6c2c2a2 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 17 Jul 2021 13:26:36 -0700 Subject: bug fix for auto follow errors --- outboxPost.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'outboxPost.go') diff --git a/outboxPost.go b/outboxPost.go index 88c85e1..356647e 100644 --- a/outboxPost.go +++ b/outboxPost.go @@ -515,7 +515,7 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { nActor := FingerActor(activity.Actor.Id) activity.Actor = &nActor } - + if !VerifyHeaderSignature(r, *activity.Actor) { response := RejectActivity(activity) MakeActivityRequest(db, response) @@ -564,7 +564,7 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { if e.Id == activity.Actor.Id { alreadyFollow = true } - } + } if autoSub && !alreadyFollow { followActivity := MakeFollowActivity(db, response.Actor.Id, response.Object.Actor) -- cgit v1.2.3