merge-requests/30/head
Bob Mottram 2023-10-08 21:11:27 +01:00
parent c5fc11ab56
commit 4874d5c4bd
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ def site_is_active(url: str, timeout: int,
This can be used to check that an instance is online before This can be used to check that an instance is online before
trying to send posts to it. trying to send posts to it.
""" """
if '<>' in url:
url = url.replace('<>', '')
if not url.startswith('http') and \ if not url.startswith('http') and \
not url.startswith('ipfs') and \ not url.startswith('ipfs') and \
not url.startswith('ipns'): not url.startswith('ipns'):