diff --git a/api/api_methods.py b/api/api_methods.py index 2090f09..347dd2b 100755 --- a/api/api_methods.py +++ b/api/api_methods.py @@ -695,9 +695,6 @@ class ApiMedia: value_min=0, value_max=1000000000), ], returns="медиа, в противном случае ошибку") async def get(request, access_token, media_id): - if request.method != "GET": - return make_error_object(Exception(API_ERROR_INVALID_REQUEST, "method must be executed http GET method")) - m = await Media.objects.filter(Q(owner=access_token.user) | Q(owner__accountavatar__photo=media_id) | Q(owner__accountavatar__profile_background_id=media_id)).filter(pk=media_id).afirst()