This commit is contained in:
parent
c50d59e2b3
commit
9abb291475
|
@ -101,8 +101,7 @@ where
|
|||
return Err(I::Error::from(AuthorityError {
|
||||
authority,
|
||||
actor: activity_actor.clone(),
|
||||
})
|
||||
.into());
|
||||
}));
|
||||
}
|
||||
|
||||
self.ingest
|
||||
|
@ -144,12 +143,12 @@ where
|
|||
{
|
||||
// delivered a public activity to a user inbox
|
||||
if !actor_id.is_shared() && activity.is_public() {
|
||||
return Err(I::Error::from(InboxError).into());
|
||||
return Err(I::Error::from(InboxError));
|
||||
}
|
||||
|
||||
// delivered a private activity to a shared inbox
|
||||
if actor_id.is_shared() && !activity.is_public() {
|
||||
return Err(I::Error::from(InboxError).into());
|
||||
return Err(I::Error::from(InboxError));
|
||||
}
|
||||
|
||||
self.ingest
|
||||
|
@ -190,7 +189,7 @@ where
|
|||
if activity.id().host() != activity.actor_id().host()
|
||||
|| activity.id().port() != activity.actor_id().port()
|
||||
{
|
||||
return Err(I::Error::from(HostError).into());
|
||||
return Err(I::Error::from(HostError));
|
||||
}
|
||||
|
||||
self.ingest
|
||||
|
|
Loading…
Reference in a new issue