From 0103ac611faa2dae2ade861cc339624faf470a2c Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Sat, 28 Oct 2023 00:51:22 +1100 Subject: [PATCH] add PoW event id tag --- client/src/components/PostCard/PostCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/PostCard/PostCard.tsx b/client/src/components/PostCard/PostCard.tsx index c780107..5a52024 100644 --- a/client/src/components/PostCard/PostCard.tsx +++ b/client/src/components/PostCard/PostCard.tsx @@ -83,7 +83,8 @@ const PostCard = ({ key, event, metadata, replyCount }: { key: string, event: Ev }
-
{timeAgo(event.created_at)}
+
{event.id.match(/^0*([^\0]{2})/)?.[0] || 0}
  +
{timeAgo(event.created_at)}
{replyCount}
@@ -98,7 +99,7 @@ const PostCard = ({ key, event, metadata, replyCount }: { key: string, event: Ev loading="lazy" /> - )} + )}