aboutsummaryrefslogtreecommitdiff
path: root/outboxPost.go
diff options
context:
space:
mode:
authorFChannel <>2021-07-17 13:26:36 -0700
committerFChannel <>2021-07-17 13:26:36 -0700
commitf93f32ee27fbd3afbccf30fb55550a1ee6c2c2a2 (patch)
treef8f828bdc3de1e437d22bcdde5b9db974626923b /outboxPost.go
parenta13a0d96f3808c17d9c50df1af400b73445f64ac (diff)
bug fix for auto follow errors
Diffstat (limited to 'outboxPost.go')
-rw-r--r--outboxPost.go4
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)