1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 00:14:48 +00:00

Fix activitypub HTTPoison issue

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-06-09 10:40:20 +02:00
parent 164dca8562
commit 39ae24edb8
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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"]}]
), ),