forked from Kieran/snort
fix: remove relay tag from zap e/a tag
This commit is contained in:
parent
f252087f6b
commit
ed3b6c84cf
@ -172,7 +172,8 @@ export class EventPublisher {
|
|||||||
const eb = this.#eb(EventKind.ZapRequest);
|
const eb = this.#eb(EventKind.ZapRequest);
|
||||||
eb.content(msg ?? "");
|
eb.content(msg ?? "");
|
||||||
if (note) {
|
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(["p", author]);
|
||||||
eb.tag(["relays", ...relays.map(a => a.trim())]);
|
eb.tag(["relays", ...relays.map(a => a.trim())]);
|
||||||
|
Loading…
Reference in New Issue
Block a user