diff options
author | FChannel <> | 2021-07-17 13:26:36 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-17 13:26:36 -0700 |
commit | f93f32ee27fbd3afbccf30fb55550a1ee6c2c2a2 (patch) | |
tree | f8f828bdc3de1e437d22bcdde5b9db974626923b /outboxPost.go | |
parent | a13a0d96f3808c17d9c50df1af400b73445f64ac (diff) |
bug fix for auto follow errors
Diffstat (limited to 'outboxPost.go')
-rw-r--r-- | outboxPost.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |