logo

pleroma

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

expect_public_or_authenticated_check_plug.ex (578B)


  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.ExpectPublicOrAuthenticatedCheckPlug do
  5. @moduledoc """
  6. Marks `Pleroma.Web.Plugs.EnsurePublicOrAuthenticatedPlug` as expected to be executed later in plug
  7. chain.
  8. No-op plug which affects `Pleroma.Web` operation (is checked with `PlugHelper.plug_called?/2`).
  9. """
  10. use Pleroma.Web, :plug
  11. def init(options), do: options
  12. @impl true
  13. def perform(conn, _) do
  14. conn
  15. end
  16. end