Fixes decorator eating function results

This commit is contained in:
Mouse Reeve 2024-10-17 14:37:05 -07:00
parent 4c8b089d8b
commit 0bbef583a2

View file

@ -7,7 +7,8 @@ def require_federation(function):
"""Ensure that federation is allowed before proceeding with this view""" """Ensure that federation is allowed before proceeding with this view"""
@wraps(function) @wraps(function)
def wrap(request, *args, **kwargs): # pylint: disable=unused-argument def wrap(request, *args, **kwargs):
SiteSettings.raise_federation_disabled() SiteSettings.raise_federation_disabled()
return function(request, *args, **kwargs)
return wrap return wrap