summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/user.ts1
1 files changed, 1 insertions, 0 deletions
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,