From bbee17320a63adce2c5e7a4b0c50001b6a93754f Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 8 Dec 2019 18:13:44 -0500 Subject: [PATCH] convert incorrectly set format to string --- lib/philomena_web/views/image_view.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/philomena_web/views/image_view.ex b/lib/philomena_web/views/image_view.ex index 335b7e72..01eac6db 100644 --- a/lib/philomena_web/views/image_view.ex +++ b/lib/philomena_web/views/image_view.ex @@ -71,6 +71,7 @@ defmodule PhilomenaWeb.ImageView do root = image_url_root() format = image.image_format + |> to_string() |> String.downcase() |> thumb_format(name) @@ -92,6 +93,7 @@ defmodule PhilomenaWeb.ImageView do filename = if short, do: image.id, else: image.file_name_cache format = image.image_format + |> to_string() |> String.downcase() |> thumb_format(nil)