Fix activitypub HTTPoison issue
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b58b325ba9
commit
9d8d32c10e
@ -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"]}]
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user