This commit is contained in:
syuilo
2018-04-05 18:50:52 +09:00
parent 7403f38fb4
commit fd87a63e57
3 changed files with 4 additions and 3 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('self link not found');
}
user = await resolvePerson(self.href, acctLower);