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