logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

expect_authenticated_check_plug.ex (560B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.Plugs.ExpectAuthenticatedCheckPlug do
  5. @moduledoc """
  6. Marks `Pleroma.Web.Plugs.EnsureAuthenticatedPlug` as expected to be executed later in plug chain.
  7. No-op plug which affects `Pleroma.Web` operation (is checked with `PlugHelper.plug_called?/2`).
  8. """
  9. use Pleroma.Web, :plug
  10. def init(options), do: options
  11. @impl true
  12. def perform(conn, _) do
  13. conn
  14. end
  15. end