fixes after rebase
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 2 Sep 2020 07:29:36 +0000 (10:29 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 13 Oct 2020 13:44:02 +0000 (16:44 +0300)
lib/pleroma/web/endpoint.ex
lib/pleroma/web/plugs/frontend_static.ex [moved from lib/pleroma/plugs/frontend_static.ex with 96% similarity]
lib/pleroma/web/plugs/instance_static.ex
test/mix/tasks/pleroma/frontend_test.exs
test/pleroma/web/activity_pub/transmogrifier/event_handling_test.exs [moved from test/web/activity_pub/transmogrifier/event_handling_test.exs with 100% similarity]

index 6acca0db679de091362baaa2ec0dfd6f3a071ebf..56562c12fc5ed46a6c3efcd00ac955a2e51e2afd 100644 (file)
@@ -29,7 +29,7 @@ defmodule Pleroma.Web.Endpoint do
   )
 
   # Careful! No `only` restriction here, as we don't know what frontends contain.
-  plug(Pleroma.Plugs.FrontendStatic,
+  plug(Pleroma.Web.Plugs.FrontendStatic,
     at: "/",
     frontend_type: :primary,
     gzip: true,
@@ -41,7 +41,7 @@ defmodule Pleroma.Web.Endpoint do
 
   plug(Plug.Static.IndexHtml, at: "/pleroma/admin/")
 
-  plug(Pleroma.Plugs.FrontendStatic,
+  plug(Pleroma.Web.Plugs.FrontendStatic,
     at: "/pleroma/admin",
     frontend_type: :admin,
     gzip: true,
similarity index 96%
rename from lib/pleroma/plugs/frontend_static.ex
rename to lib/pleroma/web/plugs/frontend_static.ex
index 11a0d538222e051ec99abba2f512fca3a04f3b5c..ceb10dcf87a253431f77fdf5a38d38257cd949f9 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
-defmodule Pleroma.Plugs.FrontendStatic do
+defmodule Pleroma.Web.Plugs.FrontendStatic do
   require Pleroma.Constants
 
   @moduledoc """
index 3e6aa826b0fa5ff556417843084c523f95f5c48f..54b9175df1ff0dc6d8e500e31829d1998a6b806a 100644 (file)
@@ -16,7 +16,7 @@ defmodule Pleroma.Web.Plugs.InstanceStatic do
     instance_path =
       Path.join(Pleroma.Config.get([:instance, :static_dir], "instance/static/"), path)
 
-    frontend_path = Pleroma.Plugs.FrontendStatic.file_path(path, :primary)
+    frontend_path = Pleroma.Web.Plugs.FrontendStatic.file_path(path, :primary)
 
     (File.exists?(instance_path) && instance_path) ||
       (frontend_path && File.exists?(frontend_path) && frontend_path) ||
index 022ae51be1a7cb8864906889b26c5b39a782417e..6f9ec14cd3657510eac5d0f06e20cf252dce1561 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
-defmodule Pleroma.FrontendTest do
+defmodule Mix.Tasks.Pleroma.FrontendTest do
   use Pleroma.DataCase
   alias Mix.Tasks.Pleroma.Frontend