diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 13:03:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 13:03:19 +0900 |
| commit | ddced43ec7251fccaf915028df5d3b25399a4499 (patch) | |
| tree | 8cd96373981f523967926b6014c640e2b48c00d3 /src/remote | |
| parent | Ignore post that not public (diff) | |
| parent | Merge pull request #1410 from akihikodaki/objec (diff) | |
| download | sharkey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.gz sharkey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.bz2 sharkey-ddced43ec7251fccaf915028df5d3b25399a4499.zip | |
Merge branch 'master' into refactor
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/resolve-user.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote/resolve-user.ts b/src/remote/resolve-user.ts index 9e1ae51952..edb4c78607 100644 --- a/src/remote/resolve-user.ts +++ b/src/remote/resolve-user.ts @@ -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('self link not found'); } - user = await resolvePerson(self.href, acctLower); + user = await resolvePerson(new Resolver(), self.href, acctLower); } return user; |