projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added 'unconfirmed' filter to admin/users
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
controllers
/
chat_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/chat_controller.ex
b/lib/pleroma/web/admin_api/controllers/chat_controller.ex
index 61d45b970cd5c6629d43932125a8481d1a428626..af8ff8292d77ce1ae4db26f4b716ffd5af59a586 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/chat_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/chat_controller.ex
@@
-10,10
+10,10
@@
defmodule Pleroma.Web.AdminAPI.ChatController do
alias Pleroma.Chat.MessageReference
alias Pleroma.ModerationLog
alias Pleroma.Pagination
alias Pleroma.Chat.MessageReference
alias Pleroma.ModerationLog
alias Pleroma.Pagination
- alias Pleroma.
Plugs.OAuthScopesPlug
+ alias Pleroma.
Web.AdminAPI
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.PleromaAPI.Chat.MessageReferenceView
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.PleromaAPI.Chat.MessageReferenceView
- alias Pleroma.Web.Pl
eromaAPI.ChatView
+ alias Pleroma.Web.Pl
ugs.OAuthScopesPlug
require Logger
require Logger
@@
-78,7
+78,7
@@
defmodule Pleroma.Web.AdminAPI.ChatController do
def show(conn, %{id: id}) do
with %Chat{} = chat <- Chat.get_by_id(id) do
conn
def show(conn, %{id: id}) do
with %Chat{} = chat <- Chat.get_by_id(id) do
conn
- |> put_view(ChatView)
+ |> put_view(
AdminAPI.
ChatView)
|> render("show.json", chat: chat)
end
end
|> render("show.json", chat: chat)
end
end