From 9d882f3753d0e4dbec81cc9b1fba7e15fdb5210c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Jan 2026 11:27:32 +0000 Subject: [PATCH] feat(post): use GRIMOIRE_CLIENT_TAG constant with NIP-89 app address Update PostViewer to use the new GRIMOIRE_CLIENT_TAG constant from main which includes the NIP-89 app definition address (31990) as the third element. Before: ["client", "grimoire"] After: ["client", "grimoire", "31990:..."] This allows Nostr clients to display a clickable link to Grimoire's app definition event. --- src/components/PostViewer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PostViewer.tsx b/src/components/PostViewer.tsx index 8613336..6605cfa 100644 --- a/src/components/PostViewer.tsx +++ b/src/components/PostViewer.tsx @@ -38,6 +38,7 @@ import { AGGREGATOR_RELAYS } from "@/services/loaders"; import { normalizeRelayURL } from "@/lib/relay-url"; import { use$ } from "applesauce-react/hooks"; import { getAuthIcon } from "@/lib/relay-status-utils"; +import { GRIMOIRE_CLIENT_TAG } from "@/constants/app"; // Per-relay publish status type RelayStatus = "pending" | "publishing" | "success" | "error"; @@ -392,7 +393,7 @@ export function PostViewer({ windowId }: PostViewerProps = {}) { // Add client tag (if enabled) if (settings.includeClientTag) { - tags.push(["client", "grimoire"]); + tags.push(GRIMOIRE_CLIENT_TAG); } // Add emoji tags