Fix AP Fetcher
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3807ab1b63
commit
50666e5dd7
|
@ -20,7 +20,7 @@ defmodule Mobilizon.Service.HTTP.ActivityPub do
|
||||||
[{"User-Agent", @user_agent}, {"Accept", "application/activity+json"}] ++ headers},
|
[{"User-Agent", @user_agent}, {"Accept", "application/activity+json"}] ++ headers},
|
||||||
Tesla.Middleware.FollowRedirects,
|
Tesla.Middleware.FollowRedirects,
|
||||||
{Tesla.Middleware.Timeout, timeout: 10_000},
|
{Tesla.Middleware.Timeout, timeout: 10_000},
|
||||||
{Tesla.Middleware.JSON, decode_content_types: "application/activity+json"}
|
{Tesla.Middleware.JSON, decode_content_types: ["application/activity+json"]}
|
||||||
]
|
]
|
||||||
|
|
||||||
adapter = {@adapter, opts}
|
adapter = {@adapter, opts}
|
||||||
|
|
Loading…
Reference in a new issue