Fix bug
This commit is contained in:
parent
cfee87d3ef
commit
ae16b45c11
6 changed files with 15 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue