Do not combine single image tweets

This commit is contained in:
Dylan 2022-05-26 18:11:30 +01:00
parent 728785278b
commit 797b670d0e

View file

@ -546,7 +546,7 @@ def embedCombined(video_link):
return embedCombinedVnf(video_link, cached_vnf)
def embedCombinedVnf(video_link,vnf):
if vnf['type'] != "Image":
if vnf['type'] != "Image" or vnf['images'][4] == "1":
return embed(video_link, vnf, 0)
desc = re.sub(r' http.*t\.co\S+', '', vnf['description'])
urlUser = urllib.parse.quote(vnf['uploader'])