From a4e189f51c7471c85cac78c3872ec004dd80d07e Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 16 Nov 2019 22:15:26 -0500 Subject: [PATCH] downcase image_format --- lib/philomena_web/views/image_view.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/views/image_view.ex b/lib/philomena_web/views/image_view.ex index a4b2caaa..169d155f 100644 --- a/lib/philomena_web/views/image_view.ex +++ b/lib/philomena_web/views/image_view.ex @@ -16,7 +16,7 @@ defmodule PhilomenaWeb.ImageView do def thumb_url(image, show_hidden, name) do %{year: year, month: month, day: day} = image.created_at deleted = image.hidden_from_users - format = image.image_format + format = String.downcase(image.image_format) root = image_url_root() id_fragment = @@ -35,7 +35,7 @@ defmodule PhilomenaWeb.ImageView do view = if download, do: "download", else: "view" filename = "#{image.id}" - format = image.image_format + format = String.downcase(image.image_format) "#{root}/#{view}/#{year}/#{month}/#{day}/#{filename}.#{format}" end