logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

expect_public_or_authenticated_check_plug.ex (570B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Plugs.ExpectPublicOrAuthenticatedCheckPlug do
  5. @moduledoc """
  6. Marks `Pleroma.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