]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/fetcher/post_or_comment.rs
Remove federation backwards compatibility with 0.16.x (#2183)
[lemmy.git] / crates / apub / src / fetcher / post_or_comment.rs
index 68e176b0145ccc8ca1b078c89e2d90f42fbbbb7a..f8a260b9823b784c39dc8c50f44988902f563ff9 100644 (file)
@@ -26,7 +26,7 @@ pub enum PostOrComment {
 #[serde(untagged)]
 pub enum PageOrNote {
   Page(Box<Page>),
-  Note(Box<Note>),
+  Note(Note),
 }
 
 #[async_trait::async_trait(?Send)]
@@ -91,7 +91,7 @@ impl ApubObject for PostOrComment {
         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?,
       )),
     })
   }