From 38fa6df39d9fe7751fcf27536c88629bac71c80a Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 28 May 2024 03:32:07 +0200 Subject: [PATCH] fix: check against current activity, not older --- src/server/inbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/inbox.rs b/src/server/inbox.rs index 3b69f272..10369c2a 100644 --- a/src/server/inbox.rs +++ b/src/server/inbox.rs @@ -107,7 +107,7 @@ impl apb::server::Inbox for Context { .await? .ok_or_else(UpubError::not_found)?; - if follow_activity.object.unwrap_or("".into()) != follow_activity.actor { + if follow_activity.object.unwrap_or("".into()) != target_actor { return Err(UpubError::forbidden()); }