diff options
| author | ibrokemypie <ibrokemypie@bastardi.net> | 2018-12-30 03:44:26 +1100 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-30 01:44:26 +0900 |
| commit | fd816afcd046d289f3716c5ba63c952d0d4e87dd (patch) | |
| tree | 1727965d53d6e5463ae03faae67d4737536bf9b4 /src/models/user.ts | |
| parent | [API] notes/mentions にミュートを適用するように (diff) | |
| download | sharkey-fd816afcd046d289f3716c5ba63c952d0d4e87dd.tar.gz sharkey-fd816afcd046d289f3716c5ba63c952d0d4e87dd.tar.bz2 sharkey-fd816afcd046d289f3716c5ba63c952d0d4e87dd.zip | |
Add id to return of users/relation (#3795)
Diffstat (limited to 'src/models/user.ts')
| -rw-r--r-- | src/models/user.ts | 1 |
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, |