'account' is no longer reformatted u@instance

This commit is contained in:
jesopo 2019-09-10 15:46:25 +01:00
parent 90d0452bfd
commit 3993447eeb

View file

@ -64,7 +64,8 @@ class Module(ModuleManager.BaseModule):
if webfinger_url == None:
self.log.debug("host-meta lookup failed for %s" % instance)
webfinger_url = WEBFINGER_DEFAULT % instance
webfinger_url = webfinger_url.replace("{uri}", "acct:%s" % account)
webfinger_url = webfinger_url.replace("{uri}",
"acct:%s@%s" % (username, instance))
webfinger = utils.http.request(webfinger_url,
headers=WEBFINGER_HEADERS, json=True)