Switch like from ❤️ to 🤙

Actually react with 🤙 at the protocol level as well

Changelog-Changed: Switch like from ❤️  to 🤙
This commit is contained in:
William Casarin
2022-12-31 17:44:56 -08:00
parent 9d181fea90
commit 52b2407f49
2 changed files with 20 additions and 3 deletions

View File

@@ -558,7 +558,7 @@ func make_like_event(pubkey: String, privkey: String, liked: NostrEvent) -> Nost
var tags: [[String]] = liked.tags.filter { tag in tag.count >= 2 && (tag[0] == "e" || tag[0] == "p") }
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)