diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/views.py b/backend/views.py index a926c18..7cfbe98 100644 --- a/backend/views.py +++ b/backend/views.py @@ -932,7 +932,7 @@ def api_video_like(request): if response: return response try: - video = SJContent.objects.get(id=request.POST['video'], content_type='video') + video = SJContent.objects.get(id=request.POST['video']) if not SJLike.objects.filter(user=user, content=video): settings = video.settings if 'likes' not in settings: @@ -961,7 +961,7 @@ def api_video_unlike(request): if response: return response try: - video = SJContent.objects.get(id=request.POST['video'], content_type='video') + video = SJContent.objects.get(id=request.POST['video']) likes = SJLike.objects.filter(user=user, content=video) if likes: settings = video.settings |
