This commit is contained in:
asonix 2024-03-03 11:13:51 -06:00
parent 4897c90ed7
commit 40bb58d603
1 changed files with 2 additions and 2 deletions

View File

@ -1207,9 +1207,9 @@ async fn proxy_alias_from_query<S: Store + 'static>(
let alias = if let Some(alias) = state.repo.related(proxy.clone()).await? { let alias = if let Some(alias) = state.repo.related(proxy.clone()).await? {
alias alias
} else if !state.config.server.read_only { } else if !state.config.server.read_only {
let stream = download_stream(proxy.as_str(), &state).await?; let stream = download_stream(proxy.as_str(), state).await?;
let (alias, _, _) = ingest_inline(stream, &state).await?; let (alias, _, _) = ingest_inline(stream, state).await?;
state.repo.relate_url(proxy, alias.clone()).await?; state.repo.relate_url(proxy, alias.clone()).await?;