diff --git a/api/funkwhale_api/federation/tasks.py b/api/funkwhale_api/federation/tasks.py index 7d9abf6343f5a0e204d6a03b58fdf2ab25354fcc..3d004a807303e14c78b91c764c6aaa102e090b46 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 0000000000000000000000000000000000000000..e63555acc4c334b31dfdc8a2037a5f6e18b55a85 --- /dev/null +++ b/changes/changelog.d/2199.bugfix @@ -0,0 +1 @@ +Fix instance checking its own availability (#2199)