From 27929816dec67772bac331932bfc0fd891b1c454 Mon Sep 17 00:00:00 2001 From: Javier Caceres <81489497+srnovus@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:48:07 -0600 Subject: [PATCH] Update schema.rs --- packages/backend-rs/src/federation/nodeinfo/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend-rs/src/federation/nodeinfo/schema.rs b/packages/backend-rs/src/federation/nodeinfo/schema.rs index 57d184f..0d70d18 100644 --- a/packages/backend-rs/src/federation/nodeinfo/schema.rs +++ b/packages/backend-rs/src/federation/nodeinfo/schema.rs @@ -265,7 +265,7 @@ mod unit_test { assert_eq!(parsed_2.software.name, "meisskey"); assert_eq!(parsed_2.software.version, "10.102.699-m544"); - let json_str_3 = r##"{"metadata":{"enableGlobalTimeline":true,"enableGuestTimeline":false,"enableLocalTimeline":true,"enableRecommendedTimeline":false,"maintainer":{"name":"Javier Caceres"},"nodeDescription":"","nodeName":"Fedired","repositoryUrl":"https://github.com/fedired-dev/fedired","themeColor":"#F25A85"},"openRegistrations":false,"protocols":["activitypub"],"services":{"inbound":[],"outbound":["atom1.0","rss2.0"]},"software":{"homepage":"https://github.com/fedired/fedired","name":"fedired","repository":"https://github.com/fedired/fedired","version":"1.0.3-nvus.3"},"usage":{"localPosts":23857,"users":{"activeHalfyear":7,"activeMonth":7,"total":9}},"version":"2.1"}"##; + let json_str_3 = r##"{"metadata":{"enableGlobalTimeline":true,"enableGuestTimeline":false,"enableLocalTimeline":true,"enableRecommendedTimeline":false,"maintainer":{"name":"Javier Caceres"},"nodeDescription":"","nodeName":"Fedired","repositoryUrl":"https://github.com/fedired-dev/fedired","themeColor":"#F25A85"},"openRegistrations":false,"protocols":["activitypub"],"services":{"inbound":[],"outbound":["atom1.0","rss2.0"]},"software":{"homepage":"https://github.com/fedired/fedired","name":"fedired","repository":"https://github.com/fedired/fedired","version":"1.0.3"},"usage":{"localPosts":23857,"users":{"activeHalfyear":7,"activeMonth":7,"total":9}},"version":"2.1"}"##; let parsed_3: Nodeinfo21 = serde_json::from_str(json_str_3).unwrap(); let serialized_3 = serde_json::to_string(&parsed_3).unwrap(); let reparsed_3: Nodeinfo21 = serde_json::from_str(&serialized_3).unwrap();