kopia lustrzana https://github.com/snarfed/bridgy-fed
salmon webfinger discovery: handle bad JSON
rodzic
db732650a4
commit
cb24aae3bd
|
@ -299,8 +299,9 @@ class WebmentionHandler(common.Handler):
|
|||
# TODO: always https?
|
||||
profile = common.requests_get(
|
||||
'%s://%s/.well-known/webfinger?resource=acct:%s' %
|
||||
(parsed.scheme, parsed.netloc, email), verify=False)
|
||||
endpoint = django_salmon.get_salmon_replies_link(profile.json())
|
||||
(parsed.scheme, parsed.netloc, email), verify=False,
|
||||
parse_json=True)
|
||||
endpoint = django_salmon.get_salmon_replies_link(profile)
|
||||
except requests.HTTPError as e:
|
||||
pass
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue