Fix federation of initial post/comment vote (fixes #1824) (#1835)
authorNutomic <me@nutomic.com>
Wed, 13 Oct 2021 14:12:41 +0000 (14:12 +0000)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 14:12:41 +0000 (10:12 -0400)
crates/apub/src/fetcher/post_or_comment.rs

index ff07024fc3a6c4fb8d1cd54f935c0dd5cf59d7da..23fc709d616bc255fda263b14c730e20c69ce0f5 100644 (file)
@@ -23,6 +23,7 @@ pub enum PostOrCommentForm {
 }
 
 #[derive(Deserialize)]
+#[serde(untagged)]
 pub enum PageOrNote {
   Page(Box<Page>),
   Note(Box<Note>),