fix vk photos
This commit is contained in:
parent
1f78bfb14c
commit
c7005c4b19
@ -38,7 +38,7 @@ class VKFeedModuleConfig(FeedModuleConfig):
|
|||||||
if 'attachments' in post:
|
if 'attachments' in post:
|
||||||
photos = []
|
photos = []
|
||||||
for image in filter(lambda a: 'photo' in a, post['attachments']):
|
for image in filter(lambda a: 'photo' in a, post['attachments']):
|
||||||
url = get_vk_photo(image['photo'])
|
url = image['photo']['sizes'][-1]['url']
|
||||||
if url:
|
if url:
|
||||||
photos.append(url.replace('\\', ''))
|
photos.append(url.replace('\\', ''))
|
||||||
if len(photos) == 1:
|
if len(photos) == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user