wip
This commit is contained in:
parent
4feff8835c
commit
897f7a031d
11 changed files with 100 additions and 13 deletions
|
@ -31,16 +31,16 @@ export default async function(follower: IUser, followee: IUser) {
|
|||
}
|
||||
});
|
||||
|
||||
// Publish reciveRequest event
|
||||
// Publish receiveRequest event
|
||||
if (isLocalUser(followee)) {
|
||||
packUser(follower, followee).then(packed => event(followee._id, 'reciveFollowRequest', packed));
|
||||
packUser(follower, followee).then(packed => event(followee._id, 'receiveFollowRequest', packed));
|
||||
|
||||
packUser(followee, followee, {
|
||||
detail: true
|
||||
}).then(packed => event(followee._id, 'meUpdated', packed));
|
||||
|
||||
// 通知を作成
|
||||
notify(followee._id, follower._id, 'reciveFollowRequest');
|
||||
notify(followee._id, follower._id, 'receiveFollowRequest');
|
||||
}
|
||||
|
||||
if (isLocalUser(follower) && isRemoteUser(followee)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue