#[serde(untagged)]
pub enum PageOrNote {
Page(Box<Page>),
- Note(Box<Note>),
+ Note(Note),
}
#[async_trait::async_trait(?Send)]
ApubPost::from_apub(*p, context, request_counter).await?,
)),
PageOrNote::Note(n) => PostOrComment::Comment(Box::new(
- ApubComment::from_apub(*n, context, request_counter).await?,
+ ApubComment::from_apub(n, context, request_counter).await?,
)),
})
}