mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-21 00:39:16 +00:00
Merge pull request 'remove unneeded function' (#143) from compile-fix into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/143
This commit is contained in:
commit
456c97fda9
|
@ -83,13 +83,4 @@ defmodule Pleroma.HTTP do
|
||||||
|> Builder.add_param(:query, :query, params)
|
|> Builder.add_param(:query, :query, params)
|
||||||
|> Builder.convert_to_keyword()
|
|> Builder.convert_to_keyword()
|
||||||
end
|
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
|
end
|
||||||
|
|
|
@ -344,7 +344,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do
|
||||||
|
|
||||||
assert not called(
|
assert not called(
|
||||||
Pleroma.Web.Federator.Publisher.enqueue_one(Publisher, %{
|
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,
|
actor_id: actor.id,
|
||||||
id: public_note_activity.data["id"]
|
id: public_note_activity.data["id"]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue