about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/src/lib.rs b/templates/src/lib.rs
index 81b1a60..96bf592 100644
--- a/templates/src/lib.rs
+++ b/templates/src/lib.rs
@@ -244,7 +244,7 @@ mod tests {
     fn test_note() {
         let mf2 = gen_random_post(&rand::random::<Domain>().to_string(), PostType::Note);
 
-        let html = crate::mf2::Entry { post: &mf2 }.to_string();
+        let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
 
         let url: Url = mf2
             .pointer("/properties/uid/0")
@@ -275,7 +275,7 @@ mod tests {
     #[test]
     fn test_article() {
         let mf2 = gen_random_post(&rand::random::<Domain>().to_string(), PostType::Article);
-        let html = crate::mf2::Entry { post: &mf2 }.to_string();
+        let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
         let url: Url = mf2
             .pointer("/properties/uid/0")
             .and_then(|i| i.as_str())
@@ -332,7 +332,7 @@ mod tests {
                 .and_then(|i| i.as_str())
                 .and_then(|u| u.parse().ok())
                 .unwrap();
-            let html = crate::mf2::Entry { post: &mf2 }.to_string();
+            let html = crate::mf2::Entry { post: &mf2, from_feed: false, }.to_string();
             let parsed: Document = microformats::from_html(&html, url.clone()).unwrap();
 
             if let Some(item) = parsed.items.first() {