diff --git a/api/api_methods.py b/api/api_methods.py index 46c320f..0b628e4 100755 --- a/api/api_methods.py +++ b/api/api_methods.py @@ -769,8 +769,8 @@ class ApiMedia: 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__account__photo_id=media_id) | - Q(owner__account__profile_background_id=media_id)).filter(pk=media_id).afirst() + Q(owner__accountavatar__photo=media_id) | + Q(owner__accountavatar__profile_background_id=media_id)).filter(pk=media_id).afirst() if m is not None: try: