diff --git a/app/get_from_reddit.py b/app/get_from_reddit.py index 15c769bd..a8a3adae 100644 --- a/app/get_from_reddit.py +++ b/app/get_from_reddit.py @@ -47,8 +47,4 @@ def get_image(boards, nsfw=False): return get_image(boards, nsfw=nsfw) image_url = response['data']['url'].replace('http://', 'https://') - if not image_url.endswith('png') or not image_url.endswith('jpg') or not image_url.endswith('gif'): - image_url = image_url + '.png' - - return image_url