Skip to content
Snippets Groups Projects
Commit 0958b328 authored by codl's avatar codl
Browse files

fix #2199

parent 506fe7c7
No related branches found
No related tags found
No related merge requests found
Pipeline #31853 failed
...@@ -632,7 +632,7 @@ def fetch_collection(url, max_pages, channel, is_page=False): ...@@ -632,7 +632,7 @@ def fetch_collection(url, max_pages, channel, is_page=False):
def check_all_remote_instance_availability(): def check_all_remote_instance_availability():
domains = models.Domain.objects.all().prefetch_related() domains = models.Domain.objects.all().prefetch_related()
for domain in domains: for domain in domains:
if domain == settings.FUNKWHALE_HOSTNAME: if domain.name == settings.FUNKWHALE_HOSTNAME:
# No need to check the instance itself: Its always reachable # No need to check the instance itself: Its always reachable
domain.reachable = True domain.reachable = True
domain.last_successful_contact = timezone.now() domain.last_successful_contact = timezone.now()
......
Fix instance checking its own availability (#2199)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment