From 9f040f0cc95093656be49553fe078d0a862c7299 Mon Sep 17 00:00:00 2001 From: mr0x50 <24775431+mroxso@users.noreply.github.com> Date: Sun, 2 Feb 2025 18:00:29 +0100 Subject: [PATCH] show uploaded via if available for kind20 events --- lumina/components/KIND20Card.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lumina/components/KIND20Card.tsx b/lumina/components/KIND20Card.tsx index 2fe4a9d..744aa08 100644 --- a/lumina/components/KIND20Card.tsx +++ b/lumina/components/KIND20Card.tsx @@ -43,6 +43,7 @@ const KIND20Card: React.FC = ({ const createdAt = new Date(event.created_at * 1000) const hrefProfile = `/profile/${nip19.npubEncode(pubkey)}` const profileImageSrc = userData?.picture || "https://robohash.org/" + pubkey + const uploadedVia = tags.find((tag) => tag[0] === "client")?.[1] return ( <> @@ -103,7 +104,10 @@ const KIND20Card: React.FC = ({ - {createdAt.toLocaleString()} +
+ {createdAt.toLocaleString()} + {uploadedVia && Uploaded via {uploadedVia}} +