mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 09:44:52 +00:00
Merge branch 'cycles-user-view' into 'develop'
Recompilation speedup: Create AdminAPI.UserView to avoid compile-time dep See merge request pleroma/pleroma!3457
This commit is contained in:
commit
4de2bd3b79
|
@ -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
|
||||
|
|
10
lib/pleroma/web/admin_api/views/user_view.ex
Normal file
10
lib/pleroma/web/admin_api/views/user_view.ex
Normal file
|
@ -0,0 +1,10 @@
|
|||
# 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
|
Loading…
Reference in a new issue