From 13acf570e79e29b5c24bbd21056e6f136b950f52 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 29 Oct 2018 21:35:46 +0900 Subject: [PATCH] Improve performance --- src/models/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/user.ts b/src/models/user.ts index 149567dd77..861161f468 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -269,7 +269,7 @@ export const pack = ( delete _user.hasUnreadNotification; } - if (meId && !meId.equals(_user.id)) { + if (meId && !meId.equals(_user.id) && opts.detail) { const [following1, following2, followReq1, followReq2, toBlocking, fromBlocked, mute] = await Promise.all([ Following.findOne({ followerId: meId,