nip45: support kind:1111 comment counts.

This commit is contained in:
fiatjaf
2025-04-10 23:06:26 -03:00
parent a90f9e61a2
commit b6f0e46a85
2 changed files with 38 additions and 9 deletions

View File

@@ -37,6 +37,20 @@ func HyperLogLogEventPubkeyOffsetsAndReferencesForEvent(evt *nostr.Event) iter.S
}
}
}
case 1111:
//
// comment counts:
e := evt.Tags.Find("E")
if e != nil {
v := e[1]
if nostr.IsValid32ByteHex(v) {
// 32th nibble of "e" tag
p, _ := strconv.ParseInt(v[32:33], 16, 64)
if !yield(v, int(p+8)) {
return
}
}
}
}
}
}