hide nip05 in notes on iris

This commit is contained in:
Martti Malmi 2023-11-29 13:24:33 +02:00
parent c3a6304573
commit 3a07e2abee
4 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

@ -70,6 +70,7 @@ declare const CONFIG: {
eventLinkPrefix: NostrPrefix;
profileLinkPrefix: NostrPrefix;
defaultRelays: Record<string, RelaySettings>;
showNip05InNotes: boolean;
};
/**

View File

@ -334,6 +334,7 @@ export function NoteInner(props: NoteProps) {
pubkey={ev.pubkey}
subHeader={replyTag() ?? undefined}
link={opt?.canClick === undefined ? undefined : ""}
showNip05={CONFIG.showNip05InNotes}
/>
<div className="info">
{props.context}