fix: check against current activity, not older
This commit is contained in:
parent
935dceacfc
commit
38fa6df39d
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue