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:
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue