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() }