damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README

commit 43061337e8160f2b19f90492ed0d2586b78aad21
parent 95824385f10947944373a30c04d1b250a182c282
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  1 Nov 2022 15:51:35 -0700

only render a max of 80 or so events

we can have a load more button if we really want to

Diffstat:
Mwebv2/damus.js | 4+++-
Mwebv2/index.html | 2+-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/webv2/damus.js b/webv2/damus.js @@ -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) diff --git a/webv2/index.html b/webv2/index.html @@ -41,7 +41,7 @@ <script src="noble-secp256k1.js?v=1"></script> <script src="bech32.js?v=1"></script> <script src="nostr.js?v=6"></script> - <script src="damus.js?v=40"></script> + <script src="damus.js?v=41"></script> <script> // I have to delay loading to wait for nos2x const relay = setTimeout(damus_web_init, 100)