fix #2199
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2551>
This commit is contained in:
parent
0e51f73298
commit
2e2e0b74ba
|
@ -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()
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix instance checking its own availability (#2199)
|
Loading…
Reference in New Issue