diff options
author | Sadposter <hannah+pleroma@coffee-and-dreams.uk> | 2019-11-26 18:33:15 +0000 |
---|---|---|
committer | Sadposter <hannah+pleroma@coffee-and-dreams.uk> | 2019-11-26 18:33:15 +0000 |
commit | ae0e2446f7393c3692945318c115d2266878c7d4 (patch) | |
tree | 528e3099216688cb101f3f692011074223797741 /lib | |
parent | 0c79869932fe00fe134979a1388dcd666aa0a076 (diff) | |
download | pleroma-ae0e2446f7393c3692945318c115d2266878c7d4.tar.gz |
obligatory format commit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/pleroma_api/controllers/account_controller.ex | 7 |
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" |