aboutsummaryrefslogtreecommitdiff
path: root/patches/1(fix_searches_p1).patch
diff options
context:
space:
mode:
authordcc <dcc@logografos.com>2024-05-15 00:57:23 -0700
committerdcc <dcc@logografos.com>2024-05-15 00:57:23 -0700
commitb31a934a804aed3f35442ceafe2080b0955e7317 (patch)
tree947b13a0388ecea81e05dd980baa10f7546860b9 /patches/1(fix_searches_p1).patch
parentea33a0d3427f8b30b82a6ddbc0ff7429cfaf8d91 (diff)
downloadanni-b31a934a804aed3f35442ceafe2080b0955e7317.tar.gz
anni-b31a934a804aed3f35442ceafe2080b0955e7317.tar.bz2
anni-b31a934a804aed3f35442ceafe2080b0955e7317.zip
total rebaseHEADmaster
Diffstat (limited to 'patches/1(fix_searches_p1).patch')
-rwxr-xr-xpatches/1(fix_searches_p1).patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/1(fix_searches_p1).patch b/patches/1(fix_searches_p1).patch
new file mode 100755
index 0000000..b40025c
--- /dev/null
+++ b/patches/1(fix_searches_p1).patch
@@ -0,0 +1,27 @@
+From 08c8abc053d2b1b36f4cc21402a8df254a6c7795 Mon Sep 17 00:00:00 2001
+From: Mint <>
+Date: Wed, 31 May 2023 18:04:58 +0300
+Subject: [PATCH] Enable redirect middleware for Hackney
+
+---
+ lib/pleroma/http.ex | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/pleroma/http.ex b/lib/pleroma/http.ex
+index d41061538d..a0e7d80f83 100644
+--- a/lib/pleroma/http.ex
++++ b/lib/pleroma/http.ex
+@@ -106,6 +106,10 @@ defp adapter_middlewares(Tesla.Adapter.Gun) do
+ [Tesla.Middleware.FollowRedirects, Pleroma.Tesla.Middleware.ConnectionPool]
+ end
+
++ defp adapter_middlewares(Tesla.Adapter.Hackney) do
++ [Tesla.Middleware.FollowRedirects]
++ 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
+--
+GitLab
+