Fix for mentions index.

I read the docs more thoroughly this time...
This commit is contained in:
Thomas Mathews 2023-01-18 10:20:52 -08:00
parent 7ccb07ffc3
commit 8f14f77576
2 changed files with 17 additions and 8 deletions

View file

@ -40,6 +40,15 @@ function event_get_pubkeys(ev) {
return keys;
}
function event_get_tag_values(ev) {
const keys = [];
for (const tag of ev.tags) {
if (tag.length >= 2)
keys.push(tag[1]);
}
return keys;
}
function event_calculate_pow(ev) {
const id_bits = leading_zero_bits(ev.id)
for (const tag of ev.tags) {