forked from AkkomaGang/akkoma
avoid mix format bug
This commit is contained in:
parent
96ba95df2e
commit
a09ed0f5af
2 changed files with 2 additions and 2 deletions
|
@ -765,7 +765,7 @@ def fetch_and_contain_remote_object_from_id(id) do
|
||||||
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
||||||
@httpoison.get(
|
@httpoison.get(
|
||||||
id,
|
id,
|
||||||
Accept: "application/activity+json"
|
[{:Accept, "application/activity+json"}]
|
||||||
),
|
),
|
||||||
{:ok, data} <- Jason.decode(body),
|
{:ok, data} <- Jason.decode(body),
|
||||||
:ok <- Transmogrifier.contain_origin_from_id(id, data) do
|
:ok <- Transmogrifier.contain_origin_from_id(id, data) do
|
||||||
|
|
|
@ -349,7 +349,7 @@ def fetch_activity_from_atom_url(url) do
|
||||||
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
{:ok, %{body: body, status: code}} when code in 200..299 <-
|
||||||
@httpoison.get(
|
@httpoison.get(
|
||||||
url,
|
url,
|
||||||
Accept: "application/atom+xml"
|
[{:Accept, "application/atom+xml"}]
|
||||||
) do
|
) do
|
||||||
Logger.debug("Got document from #{url}, handling...")
|
Logger.debug("Got document from #{url}, handling...")
|
||||||
handle_incoming(body)
|
handle_incoming(body)
|
||||||
|
|
Loading…
Reference in a new issue