diff options
Diffstat (limited to 'server/src/apub/mod.rs')
-rw-r--r-- | server/src/apub/mod.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index 0fa665c5..6ce59992 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -11,7 +11,6 @@ use url::Url; #[cfg(test)] mod tests { use crate::db::community::Community; - use crate::db::post::Post; use crate::db::user::User_; use crate::db::{ListingType, SortType}; use crate::{naive_now, Settings}; @@ -69,35 +68,6 @@ mod tests { group.unwrap().object_props.get_id().unwrap().to_string() ); } - - #[test] - fn test_post() { - let post = Post { - id: 62, - name: "A test post".into(), - url: None, - body: None, - creator_id: 52, - community_id: 42, - published: naive_now(), - removed: false, - locked: false, - stickied: false, - nsfw: false, - deleted: false, - updated: None, - embed_title: None, - embed_description: None, - embed_html: None, - thumbnail_url: None, - }; - - let page = post.as_page(); - assert_eq!( - format!("https://{}/federation/post/62", Settings::get().hostname), - page.unwrap().object_props.get_id().unwrap().to_string() - ); - } } // TODO: this should take an enum community/user/post for `point` |