also avoid main relays that from the outbox avoid list

This commit is contained in:
Believethehype 2024-11-14 08:02:40 +01:00
parent dcb93ada6f
commit 398917522f
2 changed files with 5 additions and 2 deletions

View File

@ -176,7 +176,8 @@ async def get_main_relays(event_to_send: Event, client: Client, dvm_config):
content = json.loads(followlist.content())
relays = []
for relay in content:
relays.append(relay)
if relay not in dvm_config.AVOID_OUTBOX_RELAY_LIST:
relays.append(relay)
return relays
except:
return []

View File

@ -67,6 +67,8 @@ AVOID_OUTBOX_RELAY_LIST = ["wss://nos.lol",
"wss://nostr.bitcoiner.social", "wss://relay.galtsgulch.cc",
"ws://oxtrdevav64z64yb7x6rjg4ntzqjhedm5b5zjqulugknhzr46ny2qbad.onion",
"wss://relay.f7z.io", "wss://nostr-relay.h3z.jp", "wss://nfrelay.app",
"wss://r.kojira.io"
"wss://r.kojira.io", "wss://jp-relay-nostr.invr.chat",
"wss://nostream-production-5895.up.railway.app",
"ws://127.0.0.1:4869", "wss://sign.siamstr.com"
]