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

View file

@ -45,6 +45,7 @@ def show(opts) do
shortcodes =
pack.files
|> Map.keys()
|> Enum.sort()
|> paginate(opts[:page], opts[:page_size])
pack = Map.put(pack, :files, Map.take(pack.files, shortcodes))