kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
7c7e2b1153
commit
9b15ca181f
|
@ -158,12 +158,11 @@ class WebfingerHandler(UserHandler):
|
|||
resource = util.get_required_param(self, 'resource')
|
||||
try:
|
||||
user, domain = util.parse_acct_uri(resource)
|
||||
if domain in common.DOMAINS:
|
||||
domain = user
|
||||
except ValueError:
|
||||
domain = urllib.parse.urlparse(resource).netloc or resource
|
||||
|
||||
if domain in common.DOMAINS:
|
||||
domain = user
|
||||
|
||||
url = None
|
||||
if resource.startswith('http://') or resource.startswith('https://'):
|
||||
url = resource
|
||||
|
|
Ładowanie…
Reference in New Issue