diff --git a/crates/apub/src/protocol/activities/create_or_update/mod.rs b/crates/apub/src/protocol/activities/create_or_update/mod.rs index f5db71c20..1a5e3e861 100644 --- a/crates/apub/src/protocol/activities/create_or_update/mod.rs +++ b/crates/apub/src/protocol/activities/create_or_update/mod.rs @@ -4,6 +4,7 @@ pub mod post; #[cfg(test)] mod tests { use crate::{ + context::WithContext, objects::tests::file_to_json_object, protocol::{ activities::create_or_update::{comment::CreateOrUpdateComment, post::CreateOrUpdatePost}, @@ -25,8 +26,12 @@ mod tests { "assets/lemmy/activities/create_or_update/create_note.json", ); - file_to_json_object::("assets/pleroma/activities/create_note.json"); - file_to_json_object::("assets/smithereen/activities/create_note.json"); + file_to_json_object::>( + "assets/pleroma/activities/create_note.json", + ); + file_to_json_object::>( + "assets/smithereen/activities/create_note.json", + ); file_to_json_object::("assets/mastodon/activities/create_note.json"); } } diff --git a/crates/apub/src/protocol/objects/mod.rs b/crates/apub/src/protocol/objects/mod.rs index f8cc877a7..417c67488 100644 --- a/crates/apub/src/protocol/objects/mod.rs +++ b/crates/apub/src/protocol/objects/mod.rs @@ -18,6 +18,7 @@ pub struct Endpoints { #[cfg(test)] mod tests { use crate::{ + context::WithContext, objects::tests::file_to_json_object, protocol::{ objects::{chat_message::ChatMessage, group::Group, note::Note, page::Page, person::Person}, @@ -35,11 +36,11 @@ mod tests { test_parse_lemmy_item::("assets/lemmy/objects/note.json"); test_parse_lemmy_item::("assets/lemmy/objects/chat_message.json"); - file_to_json_object::("assets/pleroma/objects/person.json"); - file_to_json_object::("assets/pleroma/objects/note.json"); - file_to_json_object::("assets/pleroma/objects/chat_message.json"); + file_to_json_object::>("assets/pleroma/objects/person.json"); + file_to_json_object::>("assets/pleroma/objects/note.json"); + file_to_json_object::>("assets/pleroma/objects/chat_message.json"); - file_to_json_object::("assets/smithereen/objects/person.json"); + file_to_json_object::>("assets/smithereen/objects/person.json"); file_to_json_object::("assets/smithereen/objects/note.json"); file_to_json_object::("assets/mastodon/objects/person.json");