projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
[akkoma]
/
lib
/
pleroma
/
web
/
pleroma_api
/
controllers
/
mascot_controller.ex
diff --git
a/lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex
b/lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex
index d9c1c863622e80b41e764e81e6e53807b0dc9a0a..d4e0d8b7cc00359fb2fd75a1ecfadf23d9042e18 100644
(file)
--- a/
lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex
+++ b/
lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex
@@
-12,8
+12,6
@@
defmodule Pleroma.Web.PleromaAPI.MascotController do
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action == :show)
plug(OAuthScopesPlug, %{scopes: ["write:accounts"]} when action != :show)
plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action == :show)
plug(OAuthScopesPlug, %{scopes: ["write:accounts"]} when action != :show)
- plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug)
-
@doc "GET /api/v1/pleroma/mascot"
def show(%{assigns: %{user: user}} = conn, _params) do
json(conn, User.get_mascot(user))
@doc "GET /api/v1/pleroma/mascot"
def show(%{assigns: %{user: user}} = conn, _params) do
json(conn, User.get_mascot(user))