2020-04-21 15:29:19 +02:00
|
|
|
# Pleroma: A lightweight social networking server
|
2021-01-13 07:49:20 +01:00
|
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
2020-04-21 15:29:19 +02:00
|
|
|
# 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
|