fix for emoji pagination in pack show
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 24 Jun 2020 15:06:30 +0000 (18:06 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 24 Jun 2020 15:06:30 +0000 (18:06 +0300)
lib/pleroma/emoji/pack.ex

index 787ff8141772f3738cb7c041ce789a1ff6d82ad1..d076ae3125c5318815dba7d59042862c9f1399e8 100644 (file)
@@ -45,6 +45,7 @@ defmodule Pleroma.Emoji.Pack do
       shortcodes =
         pack.files
         |> Map.keys()
+        |> Enum.sort()
         |> paginate(opts[:page], opts[:page_size])
 
       pack = Map.put(pack, :files, Map.take(pack.files, shortcodes))