ドメインは常にPunycodeで保存するように

This commit is contained in:
syuilo
2019-04-09 23:59:32 +09:00
parent 4d64fd665e
commit 33a9783ae5
11 changed files with 31 additions and 29 deletions

View File

@ -24,6 +24,7 @@ import { UserServiceLinking } from '../../../models/entities/user-service-linkin
import { instanceChart, usersChart } from '../../../services/chart';
import { UserPublickey } from '../../../models/entities/user-publickey';
import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-error';
import { toPuny } from '../../../misc/convert-host';
const logger = apLogger;
/**
@ -124,7 +125,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
logger.info(`Creating the Person: ${person.id}`);
const host = toUnicode(new URL(object.id).hostname.toLowerCase());
const host = toPuny(new URL(object.id).hostname);
const { fields, services } = analyzeAttachments(person.attachment);