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.
This commit is contained in:
Claude
2026-01-21 11:27:32 +00:00
parent 368bddc00c
commit 9d882f3753

View File

@@ -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