Refactor
This commit is contained in:
@@ -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 { notesChart } from '../stats';
|
||||
import { notesStats } 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<
|
||||
}
|
||||
|
||||
// 統計を更新
|
||||
notesChart.update(note, true);
|
||||
notesStats.update(note, true);
|
||||
|
||||
// ハッシュタグ登録
|
||||
tags.map(tag => registerHashtag(user, tag));
|
||||
|
@@ -6,7 +6,7 @@ import pack from '../../remote/activitypub/renderer';
|
||||
import { deliver } from '../../queue';
|
||||
import Following from '../../models/following';
|
||||
import renderTombstone from '../../remote/activitypub/renderer/tombstone';
|
||||
import { notesChart } from '../stats';
|
||||
import { notesStats } from '../stats';
|
||||
import config from '../../config';
|
||||
import NoteUnread from '../../models/note-unread';
|
||||
import read from './read';
|
||||
@@ -63,5 +63,5 @@ export default async function(user: IUser, note: INote) {
|
||||
//#endregion
|
||||
|
||||
// 統計を更新
|
||||
notesChart.update(note, false);
|
||||
notesStats.update(note, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user