fix vk photos

This commit is contained in:
bakatrouble 2022-04-10 00:54:23 +03:00
parent 1f78bfb14c
commit c7005c4b19

View File

@ -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: