Skip to content

Commit

Permalink
Nvus (#37)
Browse files Browse the repository at this point in the history
* add ci

* add github yml

* update ci

* update ci

* update error ci

* update

* resolver issue #6

* ci

* udpate ci

* update ci

* a

* add github integration and update mknote

* update

* update code

* update

* update

* update integrations

* update locales

* update

* update

* update

* q

* a

* update

* update

* update v

---------

Signed-off-by: Javier Caceres <[email protected]>
  • Loading branch information
srnovus authored Nov 6, 2024
1 parent a693987 commit 422efaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fedired",
"version": "1.3.0-nvus.1",
"version": "1.3.1-nvus.1",
"repository": {
"type": "git",
"url": "https://github.com/fedired-dev/fedired.git"
Expand Down
4 changes: 2 additions & 2 deletions packages/backend-rs/src/federation/nodeinfo/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@ 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://joinfedired.org","name":"fedired","repository":"https://github.com/fedired/fedired","version":"1.3.0"},"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://joinfedired.org","name":"fedired","repository":"https://github.com/fedired/fedired","version":"1.3.1"},"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();

assert_eq!(parsed_3, reparsed_3);
assert_eq!(parsed_3.software.name, "fedired");
assert_eq!(parsed_3.software.version, "1.3.0-nvus.1");
assert_eq!(parsed_3.software.version, "1.3.1-nvus.1");

let json_str_4 = r#"{"version":"2.1","software":{"name":"activity-relay","version":"2.0.5","repository":"https://github.com/yukimochi/Activity-Relay"},"protocols":["activitypub"],"services":{"inbound":[],"outbound":[]},"openRegistrations":true,"usage":{"users":{"total":1,"activeMonth":1,"activeHalfyear":1}},"metadata":{}}"#;
let parsed_4: Nodeinfo21 = serde_json::from_str(json_str_4).unwrap();
Expand Down

0 comments on commit 422efaf

Please sign in to comment.