summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-18 01:11:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-18 01:11:14 +0900
commite8db63e788b62f6748bd1d09730d0f55a36bbc9a (patch)
treeae09f66ddf370c71bc7c2853b449a3f1667e87b6 /src/remote/activitypub/models
parent10.87.0 (diff)
downloadsharkey-e8db63e788b62f6748bd1d09730d0f55a36bbc9a.tar.gz
sharkey-e8db63e788b62f6748bd1d09730d0f55a36bbc9a.tar.bz2
sharkey-e8db63e788b62f6748bd1d09730d0f55a36bbc9a.zip
Fix bug
Diffstat (limited to 'src/remote/activitypub/models')
-rw-r--r--src/remote/activitypub/models/person.ts6
1 files changed, 3 insertions, 3 deletions
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<IU
const { fields, services } = analyzeAttachments(person.attachment);
- const tags = extractHashtags(person.tag);
+ const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase());
const isBot = object.type == 'Service';
@@ -211,7 +211,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<IU
usersChart.update(user, true);
//#endregion
- // ハッシュタグ登録
+ // ハッシュタグ更新
for (const tag of tags) updateHashtag(user, tag, true, true);
for (const tag of (user.tags || []).filter(x => !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(),