mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
nip57: include "e" tag.
This commit is contained in:
1
nip57.ts
1
nip57.ts
@@ -69,6 +69,7 @@ export function makeZapRequest(params: ProfileZap | EventZap): EventTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ('event' in params) {
|
if ('event' in params) {
|
||||||
|
zr.tags.push(['e', params.event.id])
|
||||||
if (isReplaceableKind(params.event.kind)) {
|
if (isReplaceableKind(params.event.kind)) {
|
||||||
const a = ['a', `${params.event.kind}:${params.event.pubkey}:`]
|
const a = ['a', `${params.event.kind}:${params.event.pubkey}:`]
|
||||||
zr.tags.push(a)
|
zr.tags.push(a)
|
||||||
|
|||||||
Reference in New Issue
Block a user