Use custom get method so tests pass

This commit is contained in:
Mouse Reeve 2024-08-29 10:06:52 -07:00
parent c6d34b5f3a
commit cb9782c93d

View file

@ -122,7 +122,7 @@ class SiteSettings(SiteModel):
@classmethod
def raise_federation_disabled(cls) -> None:
"""Don't connect to the outside world"""
if cls.objects.get().disable_federation:
if cls.get().disable_federation:
raise PermissionDenied("Federation is disabled")
@property