Refactoring

This commit is contained in:
syuilo 2018-10-21 07:10:35 +09:00
parent cd12bb33a5
commit ba0e57396d
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
12 changed files with 667 additions and 764 deletions

View file

@ -23,7 +23,7 @@ import registerHashtag from '../register-hashtag';
import isQuote from '../../misc/is-quote';
import { TextElementMention } from '../../mfm/parse/elements/mention';
import { TextElementHashtag } from '../../mfm/parse/elements/hashtag';
import { updateNoteStats } from '../update-chart';
import { coreChart } from '../stats';
import { erase, unique } from '../../prelude/array';
import insertNoteUnread from './unread';
@ -165,7 +165,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
}
// 統計を更新
updateNoteStats(note, true);
coreChart.updateNoteStats(note, true);
// ハッシュタグ登録
tags.map(tag => registerHashtag(user, tag));