2020-04-21 13:29:19 +00:00
|
|
|
# Pleroma: A lightweight social networking server
|
2023-01-01 11:11:47 +00:00
|
|
|
# Copyright © 2017-2023 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
|