From 3e815747834c933e76f2e328dcd6fdd0150334e7 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 00:21:35 +0100 Subject: [PATCH] fix: host-meta is xrd+xml --- src/activitypub/well_known.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/activitypub/well_known.rs b/src/activitypub/well_known.rs index 5c8f52de..26ad8e21 100644 --- a/src/activitypub/well_known.rs +++ b/src/activitypub/well_known.rs @@ -50,9 +50,13 @@ pub async fn webfinger(State(ctx): State, Query(query): Query) -> String { - format!(r#" - - - "#, ctx.base()) +pub async fn host_meta(State(ctx): State) -> Response { + ( + [("Content-Type", "application/xrd+xml")], + format!(r#" + + + "#, + ctx.base()) + ).into_response() }