mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 20:15:55 +02:00
wip
This commit is contained in:
@@ -28,6 +28,12 @@ export default async function(follower: IUser, followee: IUser) {
|
||||
}
|
||||
});
|
||||
|
||||
User.update({ _id: followee._id }, {
|
||||
$inc: {
|
||||
pendingReceivedFollowRequestsCount: 1
|
||||
}
|
||||
});
|
||||
|
||||
// Publish reciveRequest event
|
||||
if (isLocalUser(followee)) {
|
||||
packUser(follower, followee).then(packed => event(followee._id, 'reciveRequest', packed)),
|
||||
|
||||
Reference in New Issue
Block a user