Implement Mention object

This commit is contained in:
Akihiko Odaki
2018-04-05 01:24:39 +09:00
parent a5715ecc1b
commit 168b0730b4
6 changed files with 25 additions and 21 deletions

View File

@ -1,6 +1,7 @@
import { toUnicode, toASCII } from 'punycode';
import User from '../models/user';
import resolvePerson from './activitypub/resolve-person';
import Resolver from './activitypub/resolver';
import webFinger from './webfinger';
export default async (username, host, option) => {
@ -19,7 +20,7 @@ export default async (username, host, option) => {
throw new Error();
}
user = await resolvePerson(self.href, acctLower);
user = await resolvePerson(new Resolver(), self.href, acctLower);
}
return user;