web: fix related event fetching

When fetching events, also fetch events that your friends are replying
to.
This commit is contained in:
William Casarin 2022-11-14 09:02:22 -08:00
parent e0be7d15c3
commit 9a02a55caa
2 changed files with 2 additions and 2 deletions

View file

@ -491,7 +491,7 @@ function get_referenced_events(model)
let evset = new Set()
for (const ev of model.events) {
for (const tag of ev.tags) {
if (tag.count >= 2 && tag[0] === "e") {
if (tag.length >= 2 && tag[0] === "e") {
const e = tag[1]
if (!model.all_events[e]) {
evset.add(e)