2020-04-21 13:29:19 +00:00
|
|
|
# Pleroma: A lightweight social networking server
|
2021-01-13 06:49:20 +00:00
|
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
2020-04-21 13:29:19 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-06-24 07:44:50 +00:00
|
|
|
defmodule Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug do
|
2020-04-21 13:29:19 +00:00
|
|
|
@moduledoc """
|
2020-06-24 07:55:56 +00:00
|
|
|
Marks `Pleroma.Web.Plugs.EnsureAuthenticatedPlug` as expected to be executed later in plug chain.
|
2020-04-21 13:29:19 +00: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
|