mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
convert incorrectly set format to string
This commit is contained in:
parent
007624ed85
commit
bbee17320a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue