Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
4faeec2c
Verified
Commit
4faeec2c
authored
Jun 08, 2021
by
Alex Gleason
Browse files
Create AdminAPI.UserView to avoid compile-time dep
Speeds up recompilation
parent
5667c02f
Pipeline
#36497
passed with stages
in 6 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/admin_api/controllers/user_controller.ex
View file @
4faeec2c
...
...
@@ -45,8 +45,6 @@ defmodule Pleroma.Web.AdminAPI.UserController do
when
action
in
[
:follow
,
:unfollow
]
)
plug
(
:put_view
,
Pleroma
.
Web
.
AdminAPI
.
AccountView
)
action_fallback
(
AdminAPI
.
FallbackController
)
defdelegate
open_api_operation
(
action
),
to:
Pleroma
.
Web
.
ApiSpec
.
Admin
.
UserOperation
...
...
lib/pleroma/web/admin_api/views/user_view.ex
0 → 100644
View file @
4faeec2c
# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma
.
Web
.
AdminAPI
.
UserView
do
use
Pleroma
.
Web
,
:view
alias
Pleroma
.
Web
.
AdminAPI
def
render
(
view
,
opts
),
do
:
AdminAPI
.
AccountView
.
render
(
view
,
opts
)
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment