only render a max of 80 or so events

we can have a load more button if we really want to
This commit is contained in:
William Casarin 2022-11-01 15:51:35 -07:00
parent 95824385f1
commit 43061337e8
2 changed files with 4 additions and 2 deletions

View file

@ -482,7 +482,9 @@ function render_home_view(model) {
}
function render_events(model) {
return model.events.map((ev) => render_event(model, ev)).join("\n")
return model.events
.filter((ev, i) => i < 80)
.map((ev) => render_event(model, ev)).join("\n")
}
function determine_event_refs_positionally(pubkeys, ids)