Some fixes and refactors

This commit is contained in:
syuilo 2018-04-01 21:24:25 +09:00
parent 623f5b0072
commit 79f87b6943
7 changed files with 21 additions and 20 deletions

View file

@ -16,7 +16,7 @@ export default async (username, host, option) => {
const finger = await webFinger(acctLower, acctLower);
const self = finger.links.find(link => link.rel && link.rel.toLowerCase() === 'self');
if (!self) {
throw new Error;
throw new Error();
}
user = await resolvePerson(self.href, usernameLower, hostLower, acctLower);