From 5f66ca494647dce34de7fd36d22dca9e41d606e8 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 13 Apr 2024 04:31:36 +0200 Subject: [PATCH] fix: oh my god if it was this ... --- src/routes/activitypub/application.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/activitypub/application.rs b/src/routes/activitypub/application.rs index a828f04..a98555f 100644 --- a/src/routes/activitypub/application.rs +++ b/src/routes/activitypub/application.rs @@ -1,13 +1,13 @@ use apb::{ActorMut, BaseMut, ObjectMut, PublicKeyMut}; -use axum::{extract::State, http::StatusCode, Json}; +use axum::{extract::State, http::StatusCode}; use crate::{server::Context, url}; -use super::jsonld::LD; +use super::{jsonld::LD, JsonLD}; -pub async fn view(State(ctx): State) -> Result, StatusCode> { - Ok(Json( +pub async fn view(State(ctx): State) -> Result, StatusCode> { + Ok(JsonLD( serde_json::Value::new_object() .set_id(Some(&url!(ctx, ""))) .set_actor_type(Some(apb::ActorType::Application))