Drop stalk feature

Resolve #3935
Closes #2226
Closes #1946
This commit is contained in:
syuilo 2019-01-20 12:25:00 +09:00
parent d53d059480
commit 6909add1ec
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
12 changed files with 11 additions and 157 deletions

View file

@ -219,7 +219,6 @@ export async function getRelation(me: mongo.ObjectId, target: mongo.ObjectId) {
return {
id: target,
isFollowing: following1 !== null,
isStalking: following1 ? following1.stalk : false,
hasPendingFollowRequestFromYou: followReq1 !== null,
hasPendingFollowRequestToYou: followReq2 !== null,
isFollowed: following2 !== null,
@ -352,7 +351,6 @@ export const pack = (
_user.isFollowing = relation.isFollowing;
_user.isFollowed = relation.isFollowed;
_user.isStalking = relation.isStalking;
_user.hasPendingFollowRequestFromYou = relation.hasPendingFollowRequestFromYou;
_user.hasPendingFollowRequestToYou = relation.hasPendingFollowRequestToYou;
_user.isBlocking = relation.isBlocking;