Update nostr_utils.py

This commit is contained in:
Believethehype 2024-11-18 16:00:00 +01:00
parent fb31d39d23
commit 96a5d97140

View File

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