codl 2023-07-27 04:32:33 +02:00 committed by Marge
parent 0e51f73298
commit 2e2e0b74ba
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -0,0 +1 @@
Fix instance checking its own availability (#2199)