logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: f1c407e777cc1e783ad6930a89ebaa01d9a42c3b
parent: e0c350db390f809a6cbd049a91ac819d740b4eda
Author: eal <eal@waifu.club>
Date:   Mon, 20 Aug 2018 12:13:07 +0000

Merge branch 'fix/redirect-on-user-fetch' into 'develop'

ActivityPub: follow redirects when fetching user

See merge request pleroma/pleroma!278

Diffstat:

Mlib/pleroma/web/activity_pub/activity_pub.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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