projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'chat-moderation' into 'develop'
[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..657f4632451a192a0bf34dccb1bfe928d5e3c5d6 100644
(file)
--- a/
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
+++ b/
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
@@
-21,8
+21,8
@@
defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
]
)
]
)
- @skip_plugs [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.E
xpectPublicOrAuthenticatedCheck
Plug]
- plug(:skip_plug, @skip_plugs when action in [:
archive, :show, :list
])
+ @skip_plugs [Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.E
nsurePublicOrAuthenticated
Plug]
+ plug(:skip_plug, @skip_plugs when action in [:
index, :show, :archive
])
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaEmojiPackOperation
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaEmojiPackOperation
@@
-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