aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhakabahitoyo <hakabahitoyo@example.com>2018-12-05 16:08:34 +0900
committerhakabahitoyo <hakabahitoyo@example.com>2018-12-05 16:08:34 +0900
commita418547bdfc95b72497faa0eb5da69b04f6a8566 (patch)
tree824c8d9f4445868e9fd097c075fc26650ead3970 /lib
parentec1ec32f209f20ba59b03021ac207832669ceae6 (diff)
downloadpleroma-a418547bdfc95b72497faa0eb5da69b04f6a8566.tar.gz
debug /api/v1/suggestions
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index ea64f163d..f9007a808 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -1169,7 +1169,15 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
url = String.replace(api, "{{host}}", host) |> String.replace("{{user}}", user)
with {:ok, %{status: 200, body: body}} <-
- @httpoison.get(url, [], timeout: timeout, recv_timeout: timeout),
+ @httpoison.get(
+ url,
+ [],
+ follow_redirect: true,
+ adapter: [
+ timeout: timeout,
+ recv_timeout: timeout
+ ]
+ ),
{:ok, data} <- Jason.decode(body) do
data2 =
Enum.slice(data, 0, limit)