more complete fix

This commit is contained in:
byte[] 2021-02-10 19:40:19 -05:00
parent ec7ed8d780
commit 19c126a7a6

View file

@ -124,6 +124,7 @@ defmodule PhilomenaWeb.ImageView do
# https://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista # https://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista
file_name_slug_fragment = file_name_slug_fragment =
image.tags image.tags
|> display_order()
|> Enum.map_join("_", & &1.slug) |> Enum.map_join("_", & &1.slug)
|> String.to_charlist() |> String.to_charlist()
|> Enum.filter(&(&1 in ?a..?z or &1 in '0123456789_-+')) |> Enum.filter(&(&1 in ?a..?z or &1 in '0123456789_-+'))