From b36e9f5bf510a33da88a4f3013c6acb566061142 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 19:53:39 +0200 Subject: [PATCH] chore: use pull_object --- src/server/fetcher.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/fetcher.rs b/src/server/fetcher.rs index 6fbc65d1..e92d787f 100644 --- a/src/server/fetcher.rs +++ b/src/server/fetcher.rs @@ -236,9 +236,7 @@ async fn fetch_object_inner(ctx: &Context, id: &str, depth: usize) -> crate::Res return Ok(x); // already in db, easy } - let object = Context::request( - Method::GET, id, None, &format!("https://{}", ctx.domain()), ctx.pkey(), ctx.domain(), - ).await?.json::().await?; + let object = ctx.pull_object(id).await?; if let Some(oid) = object.id() { if oid != id {