mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Add id to return of users/relation (#3795)
This commit is contained in:
parent
4b1dba8254
commit
4d823e5c51
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ export async function getRelation(me: mongo.ObjectId, target: mongo.ObjectId) {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
id: target,
|
||||||
isFollowing: following1 !== null,
|
isFollowing: following1 !== null,
|
||||||
isStalking: following1 ? following1.stalk : false,
|
isStalking: following1 ? following1.stalk : false,
|
||||||
hasPendingFollowRequestFromYou: followReq1 !== null,
|
hasPendingFollowRequestFromYou: followReq1 !== null,
|
||||||
|
|
Loading…
Reference in a new issue