ドメインは常にPunycodeで保存するように
This commit is contained in:
parent
4d64fd665e
commit
33a9783ae5
11 changed files with 31 additions and 29 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue