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 []