fix for emoji pagination in pack show
This commit is contained in:
parent
88ccade1cb
commit
aae1af8cf1
@ -45,6 +45,7 @@ defmodule Pleroma.Emoji.Pack do
|
|||||||
shortcodes =
|
shortcodes =
|
||||||
pack.files
|
pack.files
|
||||||
|> Map.keys()
|
|> Map.keys()
|
||||||
|
|> Enum.sort()
|
||||||
|> paginate(opts[:page], opts[:page_size])
|
|> paginate(opts[:page], opts[:page_size])
|
||||||
|
|
||||||
pack = Map.put(pack, :files, Map.take(pack.files, shortcodes))
|
pack = Map.put(pack, :files, Map.take(pack.files, shortcodes))
|
||||||
|
Loading…
Reference in New Issue
Block a user