From: Alexander Strizhakov Date: Wed, 24 Jun 2020 15:06:30 +0000 (+0300) Subject: fix for emoji pagination in pack show X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=aae1af8cf1d860243eb8c8a642682441294967e1;p=akkoma fix for emoji pagination in pack show --- diff --git a/lib/pleroma/emoji/pack.ex b/lib/pleroma/emoji/pack.ex index 787ff8141..d076ae312 100644 --- a/lib/pleroma/emoji/pack.ex +++ b/lib/pleroma/emoji/pack.ex @@ -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))