Merge branch 'replace-damus-relay' into 'main'

Replace relay.damus.io with nos.lol in default relays

Closes #22

See merge request soapbox-pub/mkstack!31
This commit is contained in:
Alex Gleason committed 2026-07-28 14:53:21 +00:00
commit aa8614630f
4 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ function useSpecificRelay() {
const { nostr } = useNostr();
// Connect to a specific relay
const relay = nostr.relay('wss://relay.damus.io');
const relay = nostr.relay('wss://relay.ditto.pub');
// Query from this relay only
const events = await relay.query([{ kinds: [1], limit: 15 }]);
@@ -45,7 +45,7 @@ function useRelayGroup() {
// Create a group of specific relays
const relayGroup = nostr.group([
'wss://relay.damus.io',
'wss://relay.ditto.pub',
'wss://relay.primal.net',
'wss://nos.lol',
]);
+1 -1
View File
@@ -72,7 +72,7 @@ The component takes no props. It reads from and writes to `AppContext` directly,
NIP-65 defines kind 10002 ("Relay List Metadata") as a replaceable event containing `r` tags for each relay, optionally annotated with `read` / `write` markers:
```
["r", "wss://relay.damus.io"] // both read and write
["r", "wss://relay.ditto.pub"] // both read and write
["r", "wss://relay.example.com", "read"] // read-only
["r", "wss://writer.example.com", "write"] // write-only
```
+3 -2
View File
@@ -246,8 +246,9 @@ const defaultConfig: AppConfig = {
relayMetadata: {
relays: [
{ url: 'wss://relay.ditto.pub', read: true, write: true },
{ url: 'wss://relay.primal.net', read: true, write: true },
{ url: 'wss://relay.damus.io', read: true, write: true },
{ url: 'wss://relay.dreamith.to', read: true, write: true },
{ url: 'wss://relay.primal.net', read: false, write: true },
{ url: 'wss://nos.lol', read: false, write: true },
],
updatedAt: 0,
},
+1 -1
View File
@@ -10,7 +10,7 @@ export const APP_RELAYS: RelayMetadata = {
{ url: 'wss://relay.ditto.pub/', read: true, write: true },
{ url: 'wss://relay.dreamith.to/', read: true, write: true },
{ url: 'wss://relay.primal.net/', read: false, write: true },
{ url: 'wss://relay.damus.io/', read: false, write: true },
{ url: 'wss://nos.lol/', read: false, write: true },
],
updatedAt: 0,
};