Handle Hubzilla posts better

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-12-17 17:32:12 +01:00
parent 5e7bcc44df
commit f7d064c022
2 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,8 @@ 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", "application/ld+json"]}
]
adapter = {@adapter, opts}