From 2e2e0b74ba06225f3fb4d624e55136c18f5b9f35 Mon Sep 17 00:00:00 2001 From: codl Date: Thu, 27 Jul 2023 04:32:33 +0200 Subject: [PATCH] fix #2199 Part-of: --- api/funkwhale_api/federation/tasks.py | 2 +- changes/changelog.d/2199.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/2199.bugfix diff --git a/api/funkwhale_api/federation/tasks.py b/api/funkwhale_api/federation/tasks.py index 7d9abf634..3d004a807 100644 --- a/api/funkwhale_api/federation/tasks.py +++ b/api/funkwhale_api/federation/tasks.py @@ -632,7 +632,7 @@ def fetch_collection(url, max_pages, channel, is_page=False): def check_all_remote_instance_availability(): domains = models.Domain.objects.all().prefetch_related() 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 domain.reachable = True domain.last_successful_contact = timezone.now() diff --git a/changes/changelog.d/2199.bugfix b/changes/changelog.d/2199.bugfix new file mode 100644 index 000000000..e63555acc --- /dev/null +++ b/changes/changelog.d/2199.bugfix @@ -0,0 +1 @@ +Fix instance checking its own availability (#2199)