stack overflow fix

This commit is contained in:
Felix Ableitner 2023-03-15 23:37:35 +01:00
parent 34c392c6a9
commit ef5fb4cf16
2 changed files with 1 additions and 7 deletions

View file

@ -30,18 +30,13 @@ where
<ActorT as ApubObject>::Error: From<Error> + From<anyhow::Error>,
Datatype: Clone,
{
dbg!(1);
verify_inbox_hash(request.headers().get("Digest"), &body)?;
dbg!(2);
let activity: Activity = serde_json::from_slice(&body)?;
dbg!(3);
data.config.verify_url_and_domain(&activity).await?;
dbg!(4);
let actor = ObjectId::<ActorT>::from(activity.actor().clone())
.dereference(data)
.await?;
dbg!(5);
verify_signature(
request.headers(),
@ -49,7 +44,6 @@ where
request.uri(),
actor.public_key_pem(),
)?;
dbg!(6);
debug!("Receiving activity {}", activity.id().to_string());
activity.verify(data).await?;

View file

@ -285,7 +285,7 @@ where
}
async fn verify(&self, data: &Data<Self::DataType>) -> Result<(), Self::Error> {
(*self).verify(data).await
self.deref().verify(data).await
}
async fn receive(self, data: &Data<Self::DataType>) -> Result<(), Self::Error> {