Some fixes and refactors
This commit is contained in:
parent
623f5b0072
commit
79f87b6943
7 changed files with 21 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue