From 3a07e2abeef9e815f095b69899ba7744d920461f Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Wed, 29 Nov 2023 13:24:33 +0200 Subject: [PATCH] hide nip05 in notes on iris --- packages/app/config/default.json | 3 ++- packages/app/config/iris.json | 3 ++- packages/app/custom.d.ts | 1 + packages/app/src/Element/Event/NoteInner.tsx | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/app/config/default.json b/packages/app/config/default.json index bebb5a56..3b718f53 100644 --- a/packages/app/config/default.json +++ b/packages/app/config/default.json @@ -30,5 +30,6 @@ "wss://relay.snort.social/": { "read": true, "write": true }, "wss://nostr.wine/": { "read": true, "write": false }, "wss://eden.nostr.land/": { "read": true, "write": false } - } + }, + "showNip05InNotes": true } diff --git a/packages/app/config/iris.json b/packages/app/config/iris.json index c84bfa0b..eb238545 100644 --- a/packages/app/config/iris.json +++ b/packages/app/config/iris.json @@ -30,5 +30,6 @@ "wss://eden.nostr.land/": { "read": true, "write": false }, "wss://relay.nostr.band/": { "read": true, "write": true }, "wss://relay.damus.io/": { "read": true, "write": true } - } + }, + "showNip05InNotes": false } diff --git a/packages/app/custom.d.ts b/packages/app/custom.d.ts index e93a5eb2..6acf91f0 100644 --- a/packages/app/custom.d.ts +++ b/packages/app/custom.d.ts @@ -70,6 +70,7 @@ declare const CONFIG: { eventLinkPrefix: NostrPrefix; profileLinkPrefix: NostrPrefix; defaultRelays: Record; + showNip05InNotes: boolean; }; /** diff --git a/packages/app/src/Element/Event/NoteInner.tsx b/packages/app/src/Element/Event/NoteInner.tsx index e39d1ba2..b52077da 100644 --- a/packages/app/src/Element/Event/NoteInner.tsx +++ b/packages/app/src/Element/Event/NoteInner.tsx @@ -334,6 +334,7 @@ export function NoteInner(props: NoteProps) { pubkey={ev.pubkey} subHeader={replyTag() ?? undefined} link={opt?.canClick === undefined ? undefined : ""} + showNip05={CONFIG.showNip05InNotes} />
{props.context}