Исправление media.get
This commit is contained in:
parent
80ed3c432e
commit
c0989f1282
@ -769,8 +769,8 @@ class ApiMedia:
|
|||||||
return make_error_object(Exception(API_ERROR_INVALID_REQUEST, "method must be executed http GET method"))
|
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) |
|
m = await Media.objects.filter(Q(owner=access_token.user) |
|
||||||
Q(owner__account__photo_id=media_id) |
|
Q(owner__accountavatar__photo=media_id) |
|
||||||
Q(owner__account__profile_background_id=media_id)).filter(pk=media_id).afirst()
|
Q(owner__accountavatar__profile_background_id=media_id)).filter(pk=media_id).afirst()
|
||||||
|
|
||||||
if m is not None:
|
if m is not None:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user