From 319e905bf9e5398cb62eaeee7da80ff6e942c094 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Mon, 2 Apr 2018 21:57:36 +0900 Subject: Introduce followed log and following log --- src/post/distribute.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/post') diff --git a/src/post/distribute.ts b/src/post/distribute.ts index 3925d4128e..4def2c27fe 100644 --- a/src/post/distribute.ts +++ b/src/post/distribute.ts @@ -48,9 +48,7 @@ export default async (user, mentions, post) => { // Fetch all followers const followers = await Following .find({ - followeeId: user._id, - // 削除されたドキュメントは除く - deletedAt: { $exists: false } + followeeId: user._id }, { followerId: true, _id: false -- cgit v1.2.3-freya