wrong variable in byte check

This commit is contained in:
Mouse Reeve 2020-10-14 10:24:05 -07:00
parent cdf23fce31
commit 122418deb8

View file

@ -39,8 +39,8 @@ def shared_inbox(request):
try:
resp = request.body
activity = json.loads(resp)
if isinstance(resp, str):
resp = json.loads(resp)
if isinstance(activity, str):
activity = json.loads(activity)
activity_object = activity['object']
except (json.decoder.JSONDecodeError, KeyError):
return HttpResponseBadRequest()