debug!("Fetching and creating remote post: {}", post_ap_id);
let page =
fetch_remote_object::<Page>(context.client(), post_ap_id, recursion_counter).await?;
- let post = Post::from_apub(
- &page,
- context,
- post_ap_id.to_owned(),
- recursion_counter,
- false,
- )
- .await?;
+ let post = Post::from_apub(&page, context, post_ap_id, recursion_counter).await?;
Ok(post)
}
);
let comment =
fetch_remote_object::<Note>(context.client(), comment_ap_id, recursion_counter).await?;
- let comment = Comment::from_apub(
- &comment,
- context,
- comment_ap_id.to_owned(),
- recursion_counter,
- false,
- )
- .await?;
+ let comment = Comment::from_apub(&comment, context, comment_ap_id, recursion_counter).await?;
let post_id = comment.post_id;
let post = blocking(context.pool(), move |conn| Post::read(conn, post_id)).await??;