fix: check against current activity, not older

This commit is contained in:
əlemi 2024-05-28 03:32:07 +02:00
parent 935dceacfc
commit 38fa6df39d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -107,7 +107,7 @@ impl apb::server::Inbox for Context {
.await? .await?
.ok_or_else(UpubError::not_found)?; .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()); return Err(UpubError::forbidden());
} }