forked from potsda.mn/mobilizon
Handle webfinger jason issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6aad8b4d36
commit
23aac914df
|
@ -98,8 +98,8 @@ defmodule Mobilizon.Service.WebFinger do
|
||||||
[Accept: "application/json, application/activity+json, application/jrd+json"],
|
[Accept: "application/json, application/activity+json, application/jrd+json"],
|
||||||
follow_redirect: true
|
follow_redirect: true
|
||||||
),
|
),
|
||||||
%{status_code: status_code, body: body} when status_code in 200..299 <- response do
|
%{status_code: status_code, body: body} when status_code in 200..299 <- response,
|
||||||
{:ok, doc} = Jason.decode(body)
|
{:ok, doc} <- Jason.decode(body) do
|
||||||
webfinger_from_json(doc)
|
webfinger_from_json(doc)
|
||||||
else
|
else
|
||||||
e ->
|
e ->
|
||||||
|
|
Loading…
Reference in a new issue