This commit is contained in:
Aya Morisawa 2018-07-14 19:49:21 +09:00
parent f39adfdf87
commit c99e864dbc
2 changed files with 16 additions and 16 deletions

View File

@ -3,7 +3,7 @@ import Xev from 'xev';
const ev = new Xev();
export default function () {
export default function() {
const log: any[] = [];
const p = childProcess.fork(__dirname + '/notes-stats-child.js');

View File

@ -363,14 +363,14 @@ export default async (user: IUser, data: {
// 削除されたドキュメントは除く
deletedAt: { $exists: false }
}, {
fields: {
userId: true
}
}).then(watchers => {
watchers.forEach(watcher => {
nm.push(watcher.userId, 'reply');
fields: {
userId: true
}
}).then(watchers => {
watchers.forEach(watcher => {
nm.push(watcher.userId, 'reply');
});
});
});
// この投稿をWatchする
if (isLocalUser(user) && user.settings.autoWatch !== false) {
@ -392,14 +392,14 @@ export default async (user: IUser, data: {
noteId: data.renote._id,
userId: { $ne: user._id }
}, {
fields: {
userId: true
}
}).then(watchers => {
watchers.forEach(watcher => {
nm.push(watcher.userId, type);
fields: {
userId: true
}
}).then(watchers => {
watchers.forEach(watcher => {
nm.push(watcher.userId, type);
});
});
});
// この投稿をWatchする
if (isLocalUser(user) && user.settings.autoWatch !== false) {