Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Maksim 2020-08-25 05:38:25 +00:00
parent 14ec12ac95
commit b267b751d4

View file

@ -74,7 +74,7 @@ defmodule Pleroma.Emoji.Pack do
shortcode <- Path.basename(filename, Path.extname(filename)),
false <- Emoji.exist?(shortcode)
) do
acc ++ [%{path: path, filename: path, shortcode: shortcode}]
[%{path: path, filename: path, shortcode: shortcode} | acc]
else
_ -> acc
end