fix: remove relay tag from zap e/a tag

This commit is contained in:
Kieran 2023-11-03 01:43:34 +09:00
parent f252087f6b
commit ed3b6c84cf
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -172,7 +172,8 @@ export class EventPublisher {
const eb = this.#eb(EventKind.ZapRequest);
eb.content(msg ?? "");
if (note) {
eb.tag(unwrap(note.toEventTag()));
// HACK: remove relay tag, some zap services dont like relay tags
eb.tag(unwrap(note.toEventTag()).slice(0, 2));
}
eb.tag(["p", author]);
eb.tag(["relays", ...relays.map(a => a.trim())]);