fix(web): ughhh userid is already an url

This commit is contained in:
əlemi 2024-08-15 04:51:29 +02:00
parent 86d23fddb1
commit 5d320f1899
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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!("{URL_BASE}/actors/{actor_id}/notifications");
let notif_url = format!("{actor_id}/notifications");
match Http::fetch::<serde_json::Value>(&notif_url, auth).await {
Err(e) => tracing::error!("failed fetching notifications: {e}"),
Ok(doc) => if let Ok(count) = doc.total_items() {