Add q tag to quote renotes

Changelog-Added: Add q tag to quoted renotes
This commit is contained in:
William Casarin
2023-04-28 17:42:50 -07:00
parent 76c6ac0f0b
commit 2aee84c65f

View File

@@ -767,7 +767,7 @@ func gather_reply_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] {
}
func gather_quote_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] {
var ids: [ReferencedId] = []
var ids: [ReferencedId] = [.q(from.id)]
if from.pubkey != our_pubkey {
ids.append(ReferencedId(ref_id: from.pubkey, relay_id: nil, key: "p"))
}