Skip to content

Commit

Permalink
fix(topics): load post data using more standard request.body
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Jun 30, 2024
1 parent 642d293 commit a3bbc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3270,7 +3270,7 @@ def topic_ref_api(request, tref):

@staff_member_required
def reorder_sources(request):
sources = json.loads(request.POST["json"]).get("sources", [])
sources = json.loads(request.body).get("sources", [])
slug = request.GET.get('topic')
lang = 'en' if request.GET.get('lang') == 'english' else 'he'
return jsonResponse(update_order_of_topic_sources(slug, sources, request.user.id, lang=lang))
Expand Down

0 comments on commit a3bbc58

Please sign in to comment.