diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 16:54:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 16:54:21 +0900 |
| commit | ae16b45c1170cd4361b8fac9fadc225101803f9a (patch) | |
| tree | 9f7d2903069fc0ed3e9984174a831e403e5ce4b3 /src/queue | |
| parent | 11.0.0-beta.7 (diff) | |
| download | sharkey-ae16b45c1170cd4361b8fac9fadc225101803f9a.tar.gz sharkey-ae16b45c1170cd4361b8fac9fadc225101803f9a.tar.bz2 sharkey-ae16b45c1170cd4361b8fac9fadc225101803f9a.zip | |
Fix bug
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/inbox.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/processors/inbox.ts b/src/queue/processors/inbox.ts index 4deaef2ae3..05fed0566d 100644 --- a/src/queue/processors/inbox.ts +++ b/src/queue/processors/inbox.ts @@ -12,7 +12,7 @@ import { Instances, Users, UserPublickeys } from '../../models'; import { instanceChart } from '../../services/chart'; import { UserPublickey } from '../../models/entities/user-publickey'; import fetchMeta from '../../misc/fetch-meta'; -import { toPuny } from '../../misc/convert-host'; +import { toPuny, toPunyNullable } from '../../misc/convert-host'; import { validActor } from '../../remote/activitypub/type'; import { ensure } from '../../prelude/ensure'; @@ -36,7 +36,7 @@ export default async (job: Bull.Job): Promise<void> => { if (keyIdLower.startsWith('acct:')) { const acct = parseAcct(keyIdLower.slice('acct:'.length)); - const host = acct.host ? toPuny(acct.host) : null; + const host = toPunyNullable(acct.host); const username = toPuny(acct.username); if (host === null) { |