bug: trim relays in zap

This commit is contained in:
Kieran 2023-02-28 16:07:20 +00:00
parent 5caf5541ec
commit 5e7ce7de35
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ export default function useEventPublisher() {
ev.Tags.push(new Tag(["e", note], ev.Tags.length));
}
ev.Tags.push(new Tag(["p", author], ev.Tags.length));
const relayTag = ["relays", ...Object.keys(relays)];
const relayTag = ["relays", ...Object.keys(relays).map(a => a.trim())];
ev.Tags.push(new Tag(relayTag, ev.Tags.length));
ev.Tags.push(new Tag(["amount", amount.toString()], ev.Tags.length));
processContent(ev, msg || "");