updateHashtagを並列で行わないように (#5284)
This commit is contained in:
parent
fc78c75bab
commit
7ecfc007a9
4 changed files with 23 additions and 10 deletions
|
@ -9,7 +9,7 @@ import watch from './watch';
|
|||
import { parse } from '../../mfm/parse';
|
||||
import { resolveUser } from '../../remote/resolve-user';
|
||||
import config from '../../config';
|
||||
import { updateHashtag } from '../update-hashtag';
|
||||
import { updateHashtags } from '../update-hashtag';
|
||||
import { concat } from '../../prelude/array';
|
||||
import insertNoteUnread from './unread';
|
||||
import { registerOrFetchInstanceDoc } from '../register-or-fetch-instance-doc';
|
||||
|
@ -202,7 +202,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
|
|||
}
|
||||
|
||||
// ハッシュタグ更新
|
||||
for (const tag of tags) updateHashtag(user, tag);
|
||||
updateHashtags(user, tags);
|
||||
|
||||
// Increment notes count (user)
|
||||
incNotesCountOfUser(user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue