From e8db63e788b62f6748bd1d09730d0f55a36bbc9a Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Feb 2019 01:11:14 +0900 Subject: Fix bug --- src/remote/activitypub/models/person.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/remote') diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 9a38bbf144..c2b99dfb04 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -143,7 +143,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise tag.toLowerCase()); const isBot = object.type == 'Service'; @@ -211,7 +211,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise !tags.includes(x))) updateHashtag(user, tag, true, false); @@ -343,7 +343,7 @@ export async function updatePerson(uri: string, resolver?: Resolver, hint?: obje const { fields, services } = analyzeAttachments(person.attachment); - const tags = extractHashtags(person.tag); + const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()); const updates = { lastFetchedAt: new Date(), -- cgit v1.2.3-freya