diff --git a/web/src/components/user.rs b/web/src/components/user.rs index a6c01545..3bb36139 100644 --- a/web/src/components/user.rs +++ b/web/src/components/user.rs @@ -1,7 +1,7 @@ use leptos::*; use crate::prelude::*; -use apb::{ActivityMut, Actor, Base, Object, ObjectMut}; +use apb::{Activity, ActivityMut, Actor, Base, Object, ObjectMut}; #[component] pub fn ActorStrip(object: crate::Object) -> impl IntoView { @@ -55,12 +55,14 @@ pub fn FollowRequestButtons(activity_id: String, actor_id: String) -> impl IntoV // TODO lmao what is going on with this double move / triple clone ??????????? let _activity_id = activity_id.clone(); let _actor_id = actor_id.clone(); + let from_actor = CACHE.get(&activity_id).map(|x| x.actor().id().unwrap_or_default()).unwrap_or_default(); + let _from_actor = from_actor.clone(); if actor_id == auth.user_id() { Some(view! { impl IntoV