From 40dc245680720fcdb64c9ee6d1402d65eed6ddf6 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 29 May 2024 18:06:34 +0200 Subject: [PATCH] feat(web): show activity ids too --- web/src/components/activity.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/components/activity.rs b/web/src/components/activity.rs index 68a93de6..6055ef18 100644 --- a/web/src/components/activity.rs +++ b/web/src/components/activity.rs @@ -7,6 +7,9 @@ use apb::{target::Addressed, Base, Activity, Object}; #[component] pub fn ActivityLine(activity: crate::Object) -> impl IntoView { let object_id = activity.object().id().unwrap_or_default(); + let activity_url = activity.id().map(|x| view! { + "↗" + }); let actor_id = activity.actor().id().unwrap_or_default(); let actor = CACHE.get_or(&actor_id, serde_json::Value::String(actor_id.clone()).into()); let kind = activity.activity_type().unwrap_or(apb::ActivityType::Activity); @@ -25,6 +28,7 @@ pub fn ActivityLine(activity: crate::Object) -> impl IntoView { {kind.as_ref().to_string()} + {activity_url}