Skip to content

Commit

Permalink
Fix multiple image formats in same reddit gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Dec 19, 2023
1 parent 3a3edab commit b70eee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/media_embedders.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ async def create_message(
files = []
if post.get("is_gallery"):
media = [
f"https://i.redd.it/{m['id']}.jpg"
{
"url": f"https://i.redd.it/{m['id']}.{m['m'].split('/')[-1]}",
}
for m in post["media_metadata"].values()
]
elif post["is_reddit_media_domain"]:
Expand Down

0 comments on commit b70eee3

Please sign in to comment.