remove unneeded function
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 3 Aug 2022 10:50:48 +0000 (11:50 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 3 Aug 2022 10:50:48 +0000 (11:50 +0100)
lib/pleroma/http.ex
test/pleroma/web/activity_pub/publisher_test.exs

index f3bdccaeec43029575bf877cc0ca703f7678b1c4..d8028651c881034c9d6cbe3a11bdbf3cc366e5a6 100644 (file)
@@ -83,13 +83,4 @@ defmodule Pleroma.HTTP do
     |> Builder.add_param(:query, :query, params)
     |> Builder.convert_to_keyword()
   end
-
-  defp adapter_middlewares(_) do
-    if Pleroma.Config.get(:env) == :test do
-      # Emulate redirects in test env, which are handled by adapters in other environments
-      [Tesla.Middleware.FollowRedirects]
-    else
-      []
-    end
-  end
 end
index 0f1d621b1d265c89f7a76136887be73cc3b157f0..93bf5c345e95084a7f6b4d3abb9e13f63895196b 100644 (file)
@@ -344,7 +344,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do
 
       assert not called(
                Pleroma.Web.Federator.Publisher.enqueue_one(Publisher, %{
-                 inbox: "https://rejected.com/users/nick1/inbox",
+                 inbox: "https://rejected.com/users/nick2/inbox",
                  actor_id: actor.id,
                  id: public_note_activity.data["id"]
                })