Implemet per user notes stats

This commit is contained in:
syuilo 2018-10-22 04:30:27 +09:00
parent 59266b3190
commit b8c56c4dda
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 96 additions and 2 deletions

View file

@ -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 { notesStats } from '../stats';
import { notesStats, perUserNotesStats } from '../stats';
import config from '../../config';
import NoteUnread from '../../models/note-unread';
import read from './read';
@ -64,4 +64,5 @@ export default async function(user: IUser, note: INote) {
// 統計を更新
notesStats.update(note, false);
perUserNotesStats.update(user, note, false);
}