diff options
| author | Adam Soltys <[email protected]> | 2026-09-30 09:42:54 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-30 09:42:54 -0700 |
| commit | 93c07bec934e8e8d847349b7792f4cc9089adbb7 (patch) | |
| tree | 098864eccfe77502ae76181aad9f095260bf3771 /tools/poll-test.js | |
| parent | e96c445e73d26e946cf2a3d515b5f0ab697ef5f0 (diff) | |
| download | coinosv3-93c07bec934e8e8d847349b7792f4cc9089adbb7.tar.gz coinosv3-93c07bec934e8e8d847349b7792f4cc9089adbb7.zip | |
Topic feeds go back as far as the relays remember, instead of "all caught up" after a handful.
#gardenstr: 5 posts across damus/primal/nos.lol/ours (they prune), 774 once
archive-keeping relays are asked too (ditto, nostr.mom, oxtr, nostrplebs,
nostr21, offchain) — topic feeds now read those. And a page whose posts
were all filtered out (replies, muted, spam) no longer ends the feed:
paging goes on from the oldest event the relays returned, up to three
asks per scroll. The quoted-note wide net gains ditto/nostrplebs/nostr21.
topic-depth-test (/feed/t/gardenstr): 9 posts then "caught up" before,
73+ and still going after.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Du1qT1wbkYwYK6zkGH79Rp
Diffstat (limited to 'tools/poll-test.js')
| -rw-r--r-- | tools/poll-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/poll-test.js b/tools/poll-test.js index e9cb0d6..b88a4db 100644 --- a/tools/poll-test.js +++ b/tools/poll-test.js @@ -15,7 +15,7 @@ const check = (n, c, d = '') => { console.log(` ${c ? '✓' : '✗'} ${n}${d ? ' const POLL_ID = '000002f7c6a38223a9843d6e93ce8c15a3048bc95003690d74341cf9de372bfc'; const pool = new SimplePool(); -const [poll] = await pool.querySync(['wss://relay.coinos.io', 'wss://relay.damus.io', 'wss://nos.lol', 'wss://relay.primal.net'], { ids: [POLL_ID] }, { maxWait: 6000 }); +const [poll] = await pool.querySync(['wss://relay.coinos.io', 'wss://relay.damus.io', 'wss://nos.lol', 'wss://relay.primal.net', 'wss://relay.ditto.pub', 'wss://relay.nostrplebs.com'], { ids: [POLL_ID] }, { maxWait: 6000 }); if (!poll) { console.log(' ✗ the poll is not on the relays'); process.exit(1); } const labels = poll.tags.filter((x) => x[0] === 'option').map((x) => x[2]); |
