NostrLink.encode(prefix: NostrPrefix)

This commit is contained in:
Martti Malmi
2023-10-18 10:01:25 +03:00
parent 700db8f62c
commit 2e663dcb4c
17 changed files with 31 additions and 49 deletions

View File

@ -104,7 +104,7 @@ export function NoteCreator() {
note.note += "\n";
}
const link = NostrLink.fromEvent(note.quote);
note.note += `nostr:${link.encode()}`;
note.note += `nostr:${link.encode(CONFIG.eventLinkPrefix)}`;
const quoteTag = link.toEventTag();
if (quoteTag) {
extraTags ??= [];