forked from alemi/upub
chore: use pull_object
This commit is contained in:
parent
d830576e66
commit
b36e9f5bf5
1 changed files with 1 additions and 3 deletions
|
@ -236,9 +236,7 @@ async fn fetch_object_inner(ctx: &Context, id: &str, depth: usize) -> crate::Res
|
||||||
return Ok(x); // already in db, easy
|
return Ok(x); // already in db, easy
|
||||||
}
|
}
|
||||||
|
|
||||||
let object = Context::request(
|
let object = ctx.pull_object(id).await?;
|
||||||
Method::GET, id, None, &format!("https://{}", ctx.domain()), ctx.pkey(), ctx.domain(),
|
|
||||||
).await?.json::<serde_json::Value>().await?;
|
|
||||||
|
|
||||||
if let Some(oid) = object.id() {
|
if let Some(oid) = object.id() {
|
||||||
if oid != id {
|
if oid != id {
|
||||||
|
|
Loading…
Reference in a new issue