Browse Source

Update delete_thread call first argument

rafalp 5 years ago
parent
commit
503a11bace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/threads/api/threadendpoints/delete.py

+ 1 - 1
misago/threads/api/threadendpoints/delete.py

@@ -9,7 +9,7 @@ from ...serializers import DeleteThreadsSerializer
 @transaction.atomic
 @transaction.atomic
 def delete_thread(request, thread):
 def delete_thread(request, thread):
     allow_delete_thread(request.user_acl, thread)
     allow_delete_thread(request.user_acl, thread)
-    moderation.delete_thread(request.user, thread)
+    moderation.delete_thread(request, thread)
     return Response({})
     return Response({})