forked from mirrors/bookwyrm
wrong variable in byte check
This commit is contained in:
parent
cdf23fce31
commit
122418deb8
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ def shared_inbox(request):
|
||||||
try:
|
try:
|
||||||
resp = request.body
|
resp = request.body
|
||||||
activity = json.loads(resp)
|
activity = json.loads(resp)
|
||||||
if isinstance(resp, str):
|
if isinstance(activity, str):
|
||||||
resp = json.loads(resp)
|
activity = json.loads(activity)
|
||||||
activity_object = activity['object']
|
activity_object = activity['object']
|
||||||
except (json.decoder.JSONDecodeError, KeyError):
|
except (json.decoder.JSONDecodeError, KeyError):
|
||||||
return HttpResponseBadRequest()
|
return HttpResponseBadRequest()
|
||||||
|
|
Loading…
Reference in a new issue