SetFormatPlug module name

This commit is contained in:
Alexander Strizhakov 2020-06-24 09:26:17 +03:00
parent c97c7d982f
commit 8249b75761
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
5 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ defmodule Pleroma.Web.Feed.UserController do
alias Pleroma.Web.ActivityPub.ActivityPubController
alias Pleroma.Web.Feed.FeedView
plug(Pleroma.Plugs.SetFormatPlug when action in [:feed_redirect])
plug(Pleroma.Web.Plugs.SetFormatPlug when action in [:feed_redirect])
action_fallback(:errors)

View File

@ -26,7 +26,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
)
plug(
Pleroma.Plugs.SetFormatPlug
Pleroma.Web.Plugs.SetFormatPlug
when action in [:object, :activity, :notice]
)

View File

@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.SetFormatPlug do
defmodule Pleroma.Web.Plugs.SetFormatPlug do
import Plug.Conn, only: [assign: 3, fetch_query_params: 1]
def init(_), do: nil

View File

@ -7,7 +7,7 @@ defmodule Pleroma.Web.WebFinger.WebFingerController do
alias Pleroma.Web.WebFinger
plug(Pleroma.Plugs.SetFormatPlug)
plug(Pleroma.Web.Plugs.SetFormatPlug)
plug(Pleroma.Web.FederatingPlug)
def host_meta(conn, _params) do

View File

@ -6,7 +6,7 @@ defmodule Pleroma.Web.Plugs.SetFormatPlugTest do
use ExUnit.Case, async: true
use Plug.Test
alias Pleroma.Plugs.SetFormatPlug
alias Pleroma.Web.Plugs.SetFormatPlug
test "set format from params" do
conn =