convert incorrectly set format to string

This commit is contained in:
byte[] 2019-12-08 18:13:44 -05:00
parent 007624ed85
commit bbee17320a

View file

@ -71,6 +71,7 @@ defmodule PhilomenaWeb.ImageView do
root = image_url_root() root = image_url_root()
format = format =
image.image_format image.image_format
|> to_string()
|> String.downcase() |> String.downcase()
|> thumb_format(name) |> thumb_format(name)
@ -92,6 +93,7 @@ defmodule PhilomenaWeb.ImageView do
filename = if short, do: image.id, else: image.file_name_cache filename = if short, do: image.id, else: image.file_name_cache
format = format =
image.image_format image.image_format
|> to_string()
|> String.downcase() |> String.downcase()
|> thumb_format(nil) |> thumb_format(nil)