damus.io

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

commit 9a02a55caae6d78b56d2d0925f46695a84cdd8dc
parent e0be7d15c34bba43dbb8c58031f10fdc288c4829
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 14 Nov 2022 09:02:22 -0800

web: fix related event fetching

When fetching events, also fetch events that your friends are replying
to.

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

diff --git a/web/index.html b/web/index.html @@ -12,7 +12,7 @@ <script defer src="js/noble-secp256k1.js?v=1"></script> <script defer src="js/bech32.js?v=1"></script> <script defer src="js/nostr.js?v=6"></script> - <script defer src="js/damus.js?v=70"></script> + <script defer src="js/damus.js?v=72"></script> </head> <body> <script> diff --git a/web/js/damus.js b/web/js/damus.js @@ -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)