#[derive(Deserialize)]
#[serde(untagged)]
pub enum PageOrNote {
- Page(Page),
+ Page(Box<Page>),
Note(Note),
}
) -> Result<Self, LemmyError> {
Ok(match apub {
PageOrNote::Page(p) => PostOrComment::Post(Box::new(
- ApubPost::from_apub(p, context, request_counter).await?,
+ ApubPost::from_apub(*p, context, request_counter).await?,
)),
PageOrNote::Note(n) => PostOrComment::Comment(Box::new(
ApubComment::from_apub(n, context, request_counter).await?,