1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00

Add id to return of users/relation (#3795)

This commit is contained in:
ibrokemypie 2018-12-30 03:44:26 +11:00 committed by syuilo
parent ac423f1ef4
commit fd816afcd0

View File

@ -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,