summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-09 23:59:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-09 23:59:32 +0900
commit33a9783ae5cf18e913cfe3f0223ed89aa94e63b4 (patch)
tree6eae0a7d9791876eff8c7bac4fb3dcdd0679a8bf /src/remote
parentUpdate update.ts (diff)
downloadmisskey-33a9783ae5cf18e913cfe3f0223ed89aa94e63b4.tar.gz
misskey-33a9783ae5cf18e913cfe3f0223ed89aa94e63b4.tar.bz2
misskey-33a9783ae5cf18e913cfe3f0223ed89aa94e63b4.zip
ドメインは常にPunycodeで保存するように
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/models/person.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index fbc329e860..2362455e02 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -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);