Skip to content
Snippets Groups Projects
Commit c99e864d authored by Aya Morisawa's avatar Aya Morisawa
Browse files

parent f39adfdf
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -308,7 +308,7 @@ export default async (user: IUser, data: {
// Publish event to followers stream
stream(following.followerId, 'note', noteObj);
if (isRemoteUser(user) || note.visibility != 'public') {
publishHybridTimelineStream(following.followerId, noteObj);
}
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment