From fd816afcd046d289f3716c5ba63c952d0d4e87dd Mon Sep 17 00:00:00 2001 From: ibrokemypie Date: Sun, 30 Dec 2018 03:44:26 +1100 Subject: [PATCH] Add id to return of users/relation (#3795) --- src/models/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/user.ts b/src/models/user.ts index 61fb7244e0..85dfdf2909 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -217,6 +217,7 @@ export async function getRelation(me: mongo.ObjectId, target: mongo.ObjectId) { ]); return { + id: target, isFollowing: following1 !== null, isStalking: following1 ? following1.stalk : false, hasPendingFollowRequestFromYou: followReq1 !== null,