fix(web): must be absolute url
This commit is contained in:
parent
45392081c7
commit
86d23fddb1
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ pub fn App() -> impl IntoView {
|
|||
let (notifications, set_notifications) = create_signal(0);
|
||||
let fetch_notifications = move || spawn_local(async move {
|
||||
let actor_id = userid.get().unwrap_or_default();
|
||||
let notif_url = format!("/actors/{actor_id}/notifications");
|
||||
let notif_url = format!("{URL_BASE}/actors/{actor_id}/notifications");
|
||||
match Http::fetch::<serde_json::Value>(¬if_url, auth).await {
|
||||
Err(e) => tracing::error!("failed fetching notifications: {e}"),
|
||||
Ok(doc) => if let Ok(count) = doc.total_items() {
|
||||
|
|
Loading…
Reference in a new issue