Fix for mentions index.
I read the docs more thoroughly this time...
This commit is contained in:
parent
7ccb07ffc3
commit
8f14f77576
2 changed files with 17 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue