fix for emoji pagination in pack show

This commit is contained in:
Alexander Strizhakov 2020-06-24 18:06:30 +03:00
parent 88ccade1cb
commit aae1af8cf1
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
1 changed files with 1 additions and 0 deletions

View 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))