From b278cd8a2707ca9d77f90c8e598bc3087b95a2b2 Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Thu, 27 Jun 2024 05:55:43 +0200 Subject: [PATCH] fix: shitcode --- src/lysand/http.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lysand/http.rs b/src/lysand/http.rs index 6bc9446..beed88a 100644 --- a/src/lysand/http.rs +++ b/src/lysand/http.rs @@ -36,8 +36,7 @@ async fn fetch_post( Ok(HttpResponse::Ok() .content_type(FEDERATION_CONTENT_TYPE) .json( - post.into_json(&FEDERATION_CONFIG.get().unwrap().to_request_data()) - .await?, + crate::objects::post::Note::from_db(&post) )) }