mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-26 21:01:34 +00:00
Fixing a stackoverflow error with url searching.
This commit is contained in:
parent
c8a8670aec
commit
ccd2b9eb75
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ pub async fn search_by_apub_id(
|
|||
delete_object_locally(&query_url, context).await?;
|
||||
}
|
||||
|
||||
build_response(fetch_response?, query_url, recursion_counter, context).await
|
||||
// Necessary because we get a stack overflow using FetchError
|
||||
let fet_res = fetch_response.map_err(|e| LemmyError::from(e.inner))?;
|
||||
build_response(fet_res, query_url, recursion_counter, context).await
|
||||
}
|
||||
|
||||
async fn build_response(
|
||||
|
|
Loading…
Reference in a new issue