commit df9e3566f9e35100ffb6b6ae19aaf0618d6369a5
parent ec94a2da5b025174b83f68df84d27549cc925897
Author: William Casarin <jb55@jb55.com>
Date: Sat, 17 Dec 2022 14:21:43 -0800
explore: don't fetch in realtime
this is probably killing things
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/index.html b/web/index.html
@@ -15,7 +15,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=7"></script>
- <script defer src="js/damus.js?v=94"></script>
+ <script defer src="js/damus.js?v=95"></script>
</head>
<body>
<script>
diff --git a/web/js/damus.js b/web/js/damus.js
@@ -975,7 +975,9 @@ function handle_profiles_loaded(ids, model, view, relay) {
const prefix = difficulty_to_prefix(model.pow)
const fofs = Array.from(model.contacts.friend_of_friends)
const standard_kinds = [1,42,5,6,7]
- let pow_filter = {kinds: standard_kinds, limit: 50}
+ const now = new Date().getTime() / 1000;
+
+ let pow_filter = {kinds: standard_kinds, limit: 50, until: now}
if (model.pow > 0)
pow_filter.ids = [ prefix ]