diff options
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/user.ts b/src/models/user.ts index f629ddbd20..1e5b6ad74e 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -189,7 +189,7 @@ export async function getRelation(me: mongo.ObjectId, target: mongo.ObjectId) { return { isFollowing: following1 !== null, - isStalking: following1 && following1.stalk, + isStalking: following1 ? following1.stalk : false, hasPendingFollowRequestFromYou: followReq1 !== null, hasPendingFollowRequestToYou: followReq2 !== null, isFollowed: following2 !== null, |