Refactor skipped plugs into Pleroma.Web functions

Speeds up recompilation by reducing compile cycles
This commit is contained in:
Alex Gleason 2021-06-08 19:14:12 -05:00
commit 45b7325b9e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
13 changed files with 22 additions and 57 deletions

View file

@ -32,10 +32,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
plug(:fetch_session)
plug(:fetch_flash)
plug(:skip_plug, [
Pleroma.Web.Plugs.OAuthScopesPlug,
Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug
])
plug(:skip_auth)
plug(RateLimiter, [name: :authentication] when action == :create_authorization)