1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 22:25:50 +02:00
This commit is contained in:
syuilo
2018-10-22 17:13:06 +09:00
parent e2a79abbe0
commit e9a8090d7e
4 changed files with 13 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import renderAccept from '../../../remote/activitypub/renderer/accept';
import { deliver } from '../../../queue';
import Following from '../../../models/following';
import { publishMainStream } from '../../../stream';
import { followingStats } from '../../stats';
import { perUserFollowingStats } from '../../stats';
export default async function(followee: IUser, follower: IUser) {
await Following.insert({
@@ -58,7 +58,7 @@ export default async function(followee: IUser, follower: IUser) {
});
//#endregion
followingStats.update(follower, followee, true);
perUserFollowingStats.update(follower, followee, true);
await User.update({ _id: followee._id }, {
$inc: {