From: eal Date: Mon, 20 Aug 2018 11:51:13 +0000 (+0300) Subject: ActivityPub: follow redirects when fetching user X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=51a21284c6ed361a9f03cdca103d31c668b4962e;p=akkoma ActivityPub: follow redirects when fetching user --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index ec605b694..cb14f6a57 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -565,7 +565,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do def fetch_and_prepare_user_from_ap_id(ap_id) do with {:ok, %{status_code: 200, body: body}} <- - @httpoison.get(ap_id, Accept: "application/activity+json"), + @httpoison.get(ap_id, [Accept: "application/activity+json"], follow_redirect: true), {:ok, data} <- Jason.decode(body) do user_data_from_user_object(data) else