fix: add client tags in nip-10 replies/reactions

This commit is contained in:
Alejandro Gómez
2026-04-01 11:48:21 +02:00
parent 093a760b20
commit a985442ae3

View File

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