fix(web): must include url_base

This commit is contained in:
əlemi 2024-11-10 22:08:35 +01:00
parent 80940b1880
commit a4620f60db
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -55,7 +55,7 @@ pub fn ObjectView() -> impl IntoView {
fn crawl(base: String, auth: Auth) {
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}");
}
});