From 9d8d32c10eeec19482df67e9a0ec380923f4db9c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 9 Jun 2020 10:40:20 +0200 Subject: [PATCH] Fix activitypub HTTPoison issue Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/activity_pub.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/federation/activity_pub/activity_pub.ex b/lib/federation/activity_pub/activity_pub.ex index f20d8da29..a506c337b 100644 --- a/lib/federation/activity_pub/activity_pub.ex +++ b/lib/federation/activity_pub/activity_pub.ex @@ -806,8 +806,8 @@ defmodule Mobilizon.Federation.ActivityPub do Logger.debug(inspect(url)) res = - with %HTTPoison.Response{status_code: 200, body: body} <- - HTTPoison.get!(url, [Accept: "application/activity+json"], + with {:ok, %HTTPoison.Response{status_code: 200, body: body}} <- + HTTPoison.get(url, [Accept: "application/activity+json"], follow_redirect: true, ssl: [{:versions, [:"tlsv1.2"]}] ),