projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/develop' into linkify
[akkoma]
/
lib
/
pleroma
/
web
/
pleroma_api
/
controllers
/
emoji_pack_controller.ex
diff --git
a/lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
b/lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
index 078fb88dd00e62417afb1ffb489f0771cfc73095..33ecd1f70979ce27af7e335f58e8f8c0fe5ff647 100644
(file)
--- a/
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
+++ b/
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
@@
-43,8
+43,8
@@
defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
|> Pleroma.Config.get!()
|> Path.join("emoji")
|> Pleroma.Config.get!()
|> Path.join("emoji")
- with {:ok, packs} <- Pack.list_local(page: params.page, page_size: params.page_size) do
- json(conn,
packs
)
+ with {:ok, packs
, count
} <- Pack.list_local(page: params.page, page_size: params.page_size) do
+ json(conn,
%{packs: packs, count: count}
)
else
{:error, :create_dir, e} ->
conn
else
{:error, :create_dir, e} ->
conn