diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-28 07:56:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-28 07:56:33 +0900 |
| commit | 1e8c1efe2f67c761ab824db430b792773a2ace48 (patch) | |
| tree | 2243c37075629ca30916c154715ed678c5d5b402 /src | |
| parent | Fix #2007 (diff) | |
| download | misskey-1e8c1efe2f67c761ab824db430b792773a2ace48.tar.gz misskey-1e8c1efe2f67c761ab824db430b792773a2ace48.tar.bz2 misskey-1e8c1efe2f67c761ab824db430b792773a2ace48.zip | |
Fix #2013
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/following/requests/accept.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/services/following/requests/accept.ts b/src/services/following/requests/accept.ts index 0a7674a4b8..817662ab6d 100644 --- a/src/services/following/requests/accept.ts +++ b/src/services/following/requests/accept.ts @@ -66,6 +66,12 @@ export default async function(followee: IUser, follower: IUser) { }); //#endregion + await User.update({ _id: followee._id }, { + $inc: { + pendingReceivedFollowRequestsCount: -1 + } + }); + packUser(followee, followee, { detail: true }).then(packed => event(followee._id, 'meUpdated', packed)); |