diff options
author | FChannel <> | 2021-06-06 03:01:19 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-06 03:01:19 -0700 |
commit | 3a4aacb9c49b7d2730b7ec46205a43c5095456d6 (patch) | |
tree | 90bbd5b66402131d7082334bcc6271c6360f27fb /outboxPost.go | |
parent | 8f5289cf17c66c10285e5b30904523d51fd23de9 (diff) |
better handling of follow when instance is offline
Diffstat (limited to 'outboxPost.go')
-rw-r--r-- | outboxPost.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/outboxPost.go b/outboxPost.go index edbea65..2a06211 100644 --- a/outboxPost.go +++ b/outboxPost.go @@ -92,8 +92,8 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { w.Write([]byte("")) return } - - _, validActor = IsValidActor(activity.Object.Actor.Id) + + validActor = (FingerActor(activity.Object.Actor.Id).Id != "") validLocalActor = (activity.Actor.Id == actor.Id) var verify Verify @@ -117,7 +117,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { } var rActivity Activity - if validActor && validLocalActor && code == auth[1] || verify.Board == Domain { + if validActor && validLocalActor && code == auth[1] { rActivity = AcceptFollow(activity) SetActorFollowingDB(db, rActivity) MakeActivityRequest(db, activity) |