();
+ let id = Signal::derive(move ||
+ params.with(|p| p.as_ref().ok().and_then(|x| x.id.as_ref()).cloned()).unwrap_or_default()
+ );
+ create_effect(move |_| {
+ let tl_url = format!("{}/likes/page", Uri::api(U::Object, &id.get(), false));
+ if !feeds.object_likes.next.get_untracked().starts_with(&tl_url) {
+ feeds.object_likes.reset(Some(tl_url));
+ }
+ });
+ view! {
+
+
+
+ }
+}
diff --git a/web/src/objects/view.rs b/web/src/objects/view.rs
index 8a9412a..195daa5 100644
--- a/web/src/objects/view.rs
+++ b/web/src/objects/view.rs
@@ -56,6 +56,7 @@ pub fn ObjectView() -> impl IntoView {
"πΈοΈ ""context"
"π« ""replies"
+ "β ""likes"
{move || if auth.present() {
if loading.get() {
Some(view! {
diff --git a/web/src/prelude.rs b/web/src/prelude.rs
index a481b55..eccfc4c 100644
--- a/web/src/prelude.rs
+++ b/web/src/prelude.rs
@@ -20,7 +20,7 @@ pub use crate::{
attachment::Attachment,
item::{Object, Summary, LikeButton, RepostButton, ReplyButton},
context::ObjectContext,
- replies::ObjectReplies,
+ replies::{ObjectReplies, ObjectLikes},
},
timeline::{
Timeline,