2020-04-21 15:29:19 +02:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-06-24 09:44:50 +02:00
|
|
|
defmodule Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug do
|
2020-04-21 15:29:19 +02:00
|
|
|
@moduledoc """
|
2020-06-24 09:55:56 +02:00
|
|
|
Marks `Pleroma.Web.Plugs.EnsureAuthenticatedPlug` as expected to be executed later in plug chain.
|
2020-04-21 15:29:19 +02:00
|
|
|
|
|
|
|
No-op plug which affects `Pleroma.Web` operation (is checked with `PlugHelper.plug_called?/2`).
|
|
|
|
"""
|
|
|
|
|
|
|
|
use Pleroma.Web, :plug
|
|
|
|
|
|
|
|
def init(options), do: options
|
|
|
|
|
|
|
|
@impl true
|
|
|
|
def perform(conn, _) do
|
|
|
|
conn
|
|
|
|
end
|
|
|
|
end
|