Compare commits

...

2 Commits

Author SHA1 Message Date
syuilo
7ef1205f8b 10.87.1 2019-02-18 01:11:28 +09:00
syuilo
e8db63e788 Fix bug 2019-02-18 01:11:14 +09:00
5 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
ChangeLog ChangeLog
========= =========
10.87.1
----------
* ハッシュタグ検索で大文字小文字が区別されてしまう問題を修正
10.87.0 10.87.0
---------- ----------
* ハッシュタグでユーザー検索できるように * ハッシュタグでユーザー検索できるように

View File

@@ -1,7 +1,7 @@
{ {
"name": "misskey", "name": "misskey",
"author": "syuilo <i@syuilo.com>", "author": "syuilo <i@syuilo.com>",
"version": "10.87.0", "version": "10.87.1",
"clientVersion": "2.0.14358", "clientVersion": "2.0.14358",
"codename": "nighthike", "codename": "nighthike",
"repository": { "repository": {

View File

@@ -143,7 +143,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<IU
const { fields, services } = analyzeAttachments(person.attachment); 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'; const isBot = object.type == 'Service';
@@ -211,7 +211,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<IU
usersChart.update(user, true); usersChart.update(user, true);
//#endregion //#endregion
// ハッシュタグ登録 // ハッシュタグ更新
for (const tag of tags) updateHashtag(user, tag, true, true); 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); 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 { fields, services } = analyzeAttachments(person.attachment);
const tags = extractHashtags(person.tag); const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase());
const updates = { const updates = {
lastFetchedAt: new Date(), lastFetchedAt: new Date(),

View File

@@ -217,7 +217,7 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => {
if (updates.description != null) { if (updates.description != null) {
const tokens = parse(updates.description); const tokens = parse(updates.description);
emojis = emojis.concat(extractEmojis(tokens)); emojis = emojis.concat(extractEmojis(tokens));
tags = extractHashtags(tokens); tags = extractHashtags(tokens).map(tag => tag.toLowerCase());
} }
updates.emojis = emojis; updates.emojis = emojis;

View File

@@ -234,7 +234,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
}); });
} }
// ハッシュタグ登録 // ハッシュタグ更新
for (const tag of tags) updateHashtag(user, tag); for (const tag of tags) updateHashtag(user, tag);
// ファイルが添付されていた場合ドライブのファイルの「このファイルが添付された投稿一覧」プロパティにこの投稿を追加 // ファイルが添付されていた場合ドライブのファイルの「このファイルが添付された投稿一覧」プロパティにこの投稿を追加