other files consistency
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 23 Jun 2020 18:10:32 +0000 (21:10 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 13 Oct 2020 13:38:19 +0000 (16:38 +0300)
18 files changed:
lib/pleroma/captcha.ex [moved from lib/pleroma/captcha/captcha.ex with 100% similarity]
lib/pleroma/captcha/service.ex [moved from lib/pleroma/captcha/captcha_service.ex with 100% similarity]
lib/pleroma/config_db.ex [moved from lib/pleroma/config/config_db.ex with 100% similarity]
lib/pleroma/conversation/participation/recipient_ship.ex [moved from lib/pleroma/conversation/participation_recipient_ship.ex with 100% similarity]
lib/pleroma/gun.ex [moved from lib/pleroma/gun/gun.ex with 100% similarity]
lib/pleroma/http.ex [moved from lib/pleroma/http/http.ex with 100% similarity]
lib/pleroma/reverse_proxy.ex [moved from lib/pleroma/reverse_proxy/reverse_proxy.ex with 100% similarity]
lib/pleroma/web/common_api.ex [moved from lib/pleroma/web/common_api/common_api.ex with 100% similarity]
lib/pleroma/web/fallback/redirect_controller.ex [moved from lib/pleroma/web/fallback_redirect_controller.ex with 97% similarity]
lib/pleroma/web/federator.ex [moved from lib/pleroma/web/federator/federator.ex with 100% similarity]
lib/pleroma/web/feed/user_controller.ex
lib/pleroma/web/media_proxy.ex [moved from lib/pleroma/web/media_proxy/media_proxy.ex with 100% similarity]
lib/pleroma/web/media_proxy/invalidation/http.ex [moved from lib/pleroma/web/media_proxy/invalidations/http.ex with 100% similarity]
lib/pleroma/web/media_proxy/invalidation/script.ex [moved from lib/pleroma/web/media_proxy/invalidations/script.ex with 100% similarity]
lib/pleroma/web/metadata/providers/open_graph.ex [moved from lib/pleroma/web/metadata/providers/opengraph.ex with 100% similarity]
lib/pleroma/web/o_status/o_status_controller.ex
lib/pleroma/web/router.ex
test/pleroma/web/feed/user_controller_test.exs

similarity index 100%
rename from lib/pleroma/gun/gun.ex
rename to lib/pleroma/gun.ex
similarity index 100%
rename from lib/pleroma/http/http.ex
rename to lib/pleroma/http.ex
similarity index 97%
rename from lib/pleroma/web/fallback_redirect_controller.ex
rename to lib/pleroma/web/fallback/redirect_controller.ex
index 431ad5485b2371fbf267692ab12dd54c90fc7198..a7b36a34b7b1253cf404c42483d2377a8be94abe 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
-defmodule Fallback.RedirectController do
+defmodule Pleroma.Web.Fallback.RedirectController do
   use Pleroma.Web, :controller
 
   require Logger
index 71eb1ea7ee28ae207e73b6edcb1368232f8d203d..bea07649bb1869973322c9eaa7c2aed03036674b 100644 (file)
@@ -5,7 +5,6 @@
 defmodule Pleroma.Web.Feed.UserController do
   use Pleroma.Web, :controller
 
-  alias Fallback.RedirectController
   alias Pleroma.User
   alias Pleroma.Web.ActivityPub.ActivityPub
   alias Pleroma.Web.ActivityPub.ActivityPubController
@@ -17,7 +16,7 @@ defmodule Pleroma.Web.Feed.UserController do
 
   def feed_redirect(%{assigns: %{format: "html"}} = conn, %{"nickname" => nickname}) do
     with {_, %User{} = user} <- {:fetch_user, User.get_cached_by_nickname_or_id(nickname)} do
-      RedirectController.redirector_with_meta(conn, %{user: user})
+      Pleroma.Web.Fallback.RedirectController.redirector_with_meta(conn, %{user: user})
     end
   end
 
index de1b0b3f003fea6150dfedddf7a1a69bba9e2993..9a4a350ae91ccab8714725437ef08feee3df876e 100644 (file)
@@ -5,7 +5,6 @@
 defmodule Pleroma.Web.OStatus.OStatusController do
   use Pleroma.Web, :controller
 
-  alias Fallback.RedirectController
   alias Pleroma.Activity
   alias Pleroma.Object
   alias Pleroma.Plugs.RateLimiter
@@ -13,6 +12,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
   alias Pleroma.Web.ActivityPub.ActivityPubController
   alias Pleroma.Web.ActivityPub.Visibility
   alias Pleroma.Web.Endpoint
+  alias Pleroma.Web.Fallback.Fallback.RedirectController
   alias Pleroma.Web.Metadata.PlayerView
   alias Pleroma.Web.Router
 
index e22b31b4c2a47f0b46eb1807c58fd9b24c675059..48bb834b969b46ef4edd668c7bbe2f564e102c53 100644 (file)
@@ -737,7 +737,7 @@ defmodule Pleroma.Web.Router do
     get("/check_password", MongooseIMController, :check_password)
   end
 
-  scope "/", Fallback do
+  scope "/", Pleroma.Web.Fallback do
     get("/registration/:token", RedirectController, :registration_page)
     get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)
     get("/api*path", RedirectController, :api_not_implemented)
index 9a5610baa9bd78ae47cbfe3ef8e232e81dad7030..a5dc0894beab1534cd289bf24139a043157ae883 100644 (file)
@@ -206,7 +206,7 @@ defmodule Pleroma.Web.Feed.UserControllerTest do
         |> response(200)
 
       assert response ==
-               Fallback.RedirectController.redirector_with_meta(
+               Pleroma.Web.Fallback.RedirectController.redirector_with_meta(
                  conn,
                  %{user: user}
                ).resp_body