web: fix related event fetching
When fetching events, also fetch events that your friends are replying to.
This commit is contained in:
parent
e0be7d15c3
commit
9a02a55caa
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue