mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
nip25: fix code example
content should not be blank
This commit is contained in:
parent
6ba2fc3338
commit
b8b5e3aa40
2
25.md
2
25.md
|
@ -42,7 +42,7 @@ func make_like_event(pubkey: String, privkey: String, liked: NostrEvent) -> Nost
|
|||
}
|
||||
tags.append(["e", liked.id])
|
||||
tags.append(["p", liked.pubkey])
|
||||
let ev = NostrEvent(content: "", pubkey: pubkey, kind: 7, tags: tags)
|
||||
let ev = NostrEvent(content: "+", pubkey: pubkey, kind: 7, tags: tags)
|
||||
ev.calculate_id()
|
||||
ev.sign(privkey: privkey)
|
||||
return ev
|
||||
|
|
Loading…
Reference in New Issue
Block a user