- // we have to verify this here in order to avoid fetching the object twice over http
- object.verify(context, request_counter).await?;
-
- let object_value = serde_json::to_value(&object)?;
- let insert = insert_activity(object.id(), object_value, false, true, context.pool()).await?;
- if !insert {
- debug!(
- "Received duplicate activity in announce {}",
- object.id().to_string()
- );
- return Ok(());
- }
- object.receive(context, request_counter).await
+ // verify here in order to avoid fetching the object twice over http
+ object.verify(context).await?;
+ object.receive(context).await