Unverified Commit fdeb5ef8 authored by Agate's avatar Agate 💬
Browse files

Fixed 500 error when federation is disabled and application+json is requested

parent 33006342
......@@ -204,7 +204,8 @@ def get_api_response(request, url):
except urls.exceptions.Resolver404:
return http.HttpResponseNotFound()
response = match.func(request, *match.args, **match.kwargs)
response.render()
if hasattr(response, "render"):
response.render()
return response
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment