From 359510eebcb3e0d0bec30c6944fa42f41d8c9249 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 3 Aug 2022 11:50:48 +0100 Subject: [PATCH] remove unneeded function --- lib/pleroma/http.ex | 9 --------- test/pleroma/web/activity_pub/publisher_test.exs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/pleroma/http.ex b/lib/pleroma/http.ex index f3bdccaee..d8028651c 100644 --- a/lib/pleroma/http.ex +++ b/lib/pleroma/http.ex @@ -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 diff --git a/test/pleroma/web/activity_pub/publisher_test.exs b/test/pleroma/web/activity_pub/publisher_test.exs index 0f1d621b1..93bf5c345 100644 --- a/test/pleroma/web/activity_pub/publisher_test.exs +++ b/test/pleroma/web/activity_pub/publisher_test.exs @@ -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"] })