diff --git a/web/src/components/object.rs b/web/src/components/object.rs index 84e7034b..43bf1116 100644 --- a/web/src/components/object.rs +++ b/web/src/components/object.rs @@ -162,9 +162,11 @@ pub fn LikeButton( view! { impl IntoView { let reply = use_context::().expect("missing reply controls context"); + let auth = use_context::().expect("missing auth context"); let comments = if n > 0 { Some(view! { {n} }) } else { @@ -208,8 +211,11 @@ pub fn ReplyButton(n: u64, target: String) -> impl IntoView { view! { {comments} " 📨" @@ -225,9 +231,11 @@ pub fn RepostButton(n: u64, target: String) -> impl IntoView { view! {