mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-24 17:01:45 +00:00
Merge branch 'fix-activity-pub-fetch-issue' into 'master'
Fix activitypub HTTPoison issue See merge request framasoft/mobilizon!449
This commit is contained in:
commit
0da2ad44a5
1 changed files with 2 additions and 2 deletions
|
@ -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"]}]
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue