Merge branch 'fix-activity-pub-fetch-issue' into 'master'

Fix activitypub HTTPoison issue

See merge request framasoft/mobilizon!449
This commit is contained in:
Thomas Citharel 2020-06-09 11:12:18 +02:00
commit baf00f8da3

View File

@ -806,8 +806,8 @@ defmodule Mobilizon.Federation.ActivityPub do
Logger.debug(inspect(url)) Logger.debug(inspect(url))
res = res =
with %HTTPoison.Response{status_code: 200, body: body} <- with {:ok, %HTTPoison.Response{status_code: 200, body: body}} <-
HTTPoison.get!(url, [Accept: "application/activity+json"], HTTPoison.get(url, [Accept: "application/activity+json"],
follow_redirect: true, follow_redirect: true,
ssl: [{:versions, [:"tlsv1.2"]}] ssl: [{:versions, [:"tlsv1.2"]}]
), ),