From a985442ae3ee29f458e153637422101760fca19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Wed, 1 Apr 2026 11:48:21 +0200 Subject: [PATCH] fix: add client tags in nip-10 replies/reactions --- src/lib/chat/adapters/nip-10-adapter.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/chat/adapters/nip-10-adapter.ts b/src/lib/chat/adapters/nip-10-adapter.ts index 481c7ca..12c5d31 100644 --- a/src/lib/chat/adapters/nip-10-adapter.ts +++ b/src/lib/chat/adapters/nip-10-adapter.ts @@ -22,6 +22,8 @@ import eventStore from "@/services/event-store"; import pool from "@/services/relay-pool"; import { publishEventToRelays } from "@/services/hub"; import accountManager from "@/services/accounts"; +import { settingsManager } from "@/services/settings"; +import { GRIMOIRE_CLIENT_TAG } from "@/constants/app"; import { AGGREGATOR_RELAYS } from "@/services/loaders"; import { mergeRelaySets } from "applesauce-core/helpers"; import { getOutboxes } from "applesauce-core/helpers/mailboxes"; @@ -410,6 +412,11 @@ export class Nip10Adapter extends ChatProtocolAdapter { } } + // Add client tag if enabled in settings + if (settingsManager.getSetting("post", "includeClientTag")) { + draft.tags.push(GRIMOIRE_CLIENT_TAG); + } + // Sign the event const event = await factory.sign(draft); @@ -457,6 +464,11 @@ export class Nip10Adapter extends ChatProtocolAdapter { emojiArg, ); + // Add client tag if enabled in settings + if (settingsManager.getSetting("post", "includeClientTag")) { + draft.tags.push(GRIMOIRE_CLIENT_TAG); + } + // Sign the event const event = await factory.sign(draft);