Add some default relays

This commit is contained in:
Jonathan Staab 2022-12-14 10:56:17 -08:00
parent 1650c51521
commit 1c003b9b8c
3 changed files with 16 additions and 6 deletions

View File

@ -1,5 +1,6 @@
Bugs
- [ ] Copy toast not showing
- [ ] uniq and sortBy are sprinkled all over the place, figure out a better solution
- [ ] With link/image previews, remove the url from the note body if it's on a separate last line
- [ ] Search page is slow and likes don't show up. Probably move this server-side

View File

@ -327,8 +327,8 @@ export const createScroller = (
const {scrollHeight} = document.body
if (
(reverse && scrollY > innerHeight * 3)
|| (!reverse && scrollY + innerHeight * 3 < scrollHeight)
(reverse && scrollY > innerHeight * 2)
|| (!reverse && scrollY + innerHeight * 2 < scrollHeight)
) {
break
}

View File

@ -247,10 +247,19 @@ nostr.event = (kind, content = '', tags = []) => {
// Keep track of known relays
export const knownRelays = writable(getLocalJson("coracle/knownRelays") || [
{url: 'wss://satstacker.cloud'},
{url: 'wss://nostr.drss.io'},
{url: 'wss://nostr-pub.semisol.dev'},
{url: 'wss://nostr-relay.untethr.me'},
"wss://nostr-pub.wellorder.net",
"wss://nostr.rocks",
"wss://nostr-pub.semisol.dev",
"wss://nostr.drss.io",
"wss://relay.damus.io",
"wss://nostr.openchain.fr",
"wss://nostr.delo.software",
"wss://relay.nostr.info",
"wss://nostr.ono.re",
"wss://relay.grunch.dev",
"wss://nostr.sandwich.farm",
"wss://relay.nostr.ch",
>>>>>>> fbef241 (Add some default relays)
])
knownRelays.subscribe($knownRelays => {