Apply 1 suggestion(s) to 1 file(s)
authorMaksim <parallel588@gmail.com>
Tue, 25 Aug 2020 05:38:25 +0000 (05:38 +0000)
committerMaksim <parallel588@gmail.com>
Tue, 25 Aug 2020 05:38:25 +0000 (05:38 +0000)
lib/pleroma/emoji/pack.ex

index dd79bdfab1917e31cd12eb277b3c4e5dbc9fdf93..930bbb4221b37b79df42910235a61eb85033020f 100644 (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