mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-08 22:47:02 +02:00
fix: add client tags in nip-10 replies/reactions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user