nip25: fix code example

content should not be blank
This commit is contained in:
William Casarin 2022-10-30 08:34:14 -07:00
parent 6ba2fc3338
commit b8b5e3aa40

2
25.md
View File

@ -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