fix vk photos

master
bakatrouble 2 years ago
parent 1f78bfb14c
commit c7005c4b19

@ -38,7 +38,7 @@ class VKFeedModuleConfig(FeedModuleConfig):
if 'attachments' in post:
photos = []
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:
photos.append(url.replace('\\', ''))
if len(photos) == 1:

Loading…
Cancel
Save