From c0ce3d4dbeba75bdada576de4411c7d7e0c0dc9e Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 3 Aug 2020 17:33:01 +0200 Subject: [PATCH] Fix AP Fetcher Signed-off-by: Thomas Citharel --- lib/service/http/activity_pub.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service/http/activity_pub.ex b/lib/service/http/activity_pub.ex index 0d0f6483f..b48ca9cdf 100644 --- a/lib/service/http/activity_pub.ex +++ b/lib/service/http/activity_pub.ex @@ -20,7 +20,7 @@ defmodule Mobilizon.Service.HTTP.ActivityPub do [{"User-Agent", @user_agent}, {"Accept", "application/activity+json"}] ++ headers}, Tesla.Middleware.FollowRedirects, {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}