avoid mix format bug
This commit is contained in:
parent
96ba95df2e
commit
a09ed0f5af
@ -765,7 +765,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
||||
@httpoison.get(
|
||||
id,
|
||||
Accept: "application/activity+json"
|
||||
[{:Accept, "application/activity+json"}]
|
||||
),
|
||||
{:ok, data} <- Jason.decode(body),
|
||||
:ok <- Transmogrifier.contain_origin_from_id(id, data) do
|
||||
|
@ -349,7 +349,7 @@ defmodule Pleroma.Web.OStatus do
|
||||
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
||||
@httpoison.get(
|
||||
url,
|
||||
Accept: "application/atom+xml"
|
||||
[{:Accept, "application/atom+xml"}]
|
||||
) do
|
||||
Logger.debug("Got document from #{url}, handling...")
|
||||
handle_incoming(body)
|
||||
|
Loading…
Reference in New Issue
Block a user