mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-14 02:48:50 +00:00
nip18: don't stringify protected event.
This commit is contained in:
2
nip18.ts
2
nip18.ts
@@ -29,7 +29,7 @@ export function finishRepostEvent(
|
||||
{
|
||||
kind: Repost,
|
||||
tags: [...(t.tags ?? []), ['e', reposted.id, relayUrl], ['p', reposted.pubkey]],
|
||||
content: t.content === '' ? '' : JSON.stringify(reposted),
|
||||
content: t.content === '' || reposted.tags?.find(tag => tag[0] === '-') ? '' : JSON.stringify(reposted),
|
||||
created_at: t.created_at,
|
||||
},
|
||||
privateKey,
|
||||
|
||||
Reference in New Issue
Block a user