Make tags more unique

This commit is contained in:
Jon Staab
2025-01-28 13:19:01 -08:00
parent ac3408c119
commit d0c6d5245b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import {ctx, remove, nthEq} from "@welshman/lib"
import {ctx, uniq, remove, nthEq} from "@welshman/lib"
import {
getAddress,
isReplaceable,
@@ -36,7 +36,7 @@ export const tagEvent = (event: TrustedEvent, mark = "") => {
}
export const tagEventPubkeys = (event: TrustedEvent) =>
remove(pubkey.get()!, [event.pubkey, ...getPubkeyTagValues(event.tags)]).map(tagPubkey)
uniq(remove(pubkey.get()!, [event.pubkey, ...getPubkeyTagValues(event.tags)])).map(tagPubkey)
export const tagEventForQuote = (event: TrustedEvent) => [
"q",