Merge branch 'fix-emoji-pagination' into 'develop'
Fix for emoji pagination in pack show See merge request pleroma/pleroma!2681
This commit is contained in:
commit
ae94fcc95f
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ def show(opts) 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 a new issue