fix(web): must include url_base
This commit is contained in:
parent
80940b1880
commit
a4620f60db
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ pub fn ObjectView() -> impl IntoView {
|
||||||
|
|
||||||
fn crawl(base: String, auth: Auth) {
|
fn crawl(base: String, auth: Auth) {
|
||||||
spawn_local(async move {
|
spawn_local(async move {
|
||||||
if let Err(e) = Http::fetch::<serde_json::Value>(&format!("{base}/replies?fetch=true"), auth).await {
|
if let Err(e) = Http::fetch::<serde_json::Value>(&format!("{URL_BASE}{base}/replies?fetch=true"), auth).await {
|
||||||
tracing::error!("failed crawling replies for {base}: {e}");
|
tracing::error!("failed crawling replies for {base}: {e}");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue