From 5bad5e0405fcb248ba18ddeae7bf74a5b0be943f Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 28 Mar 2024 04:05:47 +0100 Subject: [PATCH] fix: more lenient nodeinfo --- src/activitypub/well_known.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/well_known.rs b/src/activitypub/well_known.rs index b3cd7786..5f6c6db7 100644 --- a/src/activitypub/well_known.rs +++ b/src/activitypub/well_known.rs @@ -39,7 +39,7 @@ pub async fn nodeinfo(State(ctx): State, Path(version): Path) - let total_posts = None; let total_comments = None; let (software, version) = match version.as_str() { - "2.0.json" => ( + "2.0.json" | "2.0" => ( nodeinfo::types::Software { name: "μpub".to_string(), version: Some(VERSION.into()), @@ -48,7 +48,7 @@ pub async fn nodeinfo(State(ctx): State, Path(version): Path) - }, "2.0".to_string() ), - "2.1.json" => ( + "2.1.json" | "2.1" => ( nodeinfo::types::Software { name: "μpub".to_string(), version: Some(VERSION.into()),