mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
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:
commit
aa8614630f
4 files changed
+7
-6
No files matched your search
@@ -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',
|
||||
]);
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user