aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pleroma/web/pleroma_api/controllers/account_controller.ex7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex
index cc010d35e..a704d1f31 100644
--- a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex
@@ -43,7 +43,12 @@ defmodule Pleroma.Web.PleromaAPI.AccountController do
)
plug(RateLimiter, [name: :account_confirmation_resend] when action == :confirmation_resend)
- plug(:assign_account_by_id when action in [:favourites, :subscribe, :unsubscribe, :whitelist, :unwhitelist])
+
+ plug(
+ :assign_account_by_id
+ when action in [:favourites, :subscribe, :unsubscribe, :whitelist, :unwhitelist]
+ )
+
plug(:put_view, Pleroma.Web.MastodonAPI.AccountView)
@doc "POST /api/v1/pleroma/accounts/confirmation_resend"