1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 22:25:50 +02:00

Refactoring

This commit is contained in:
syuilo
2018-10-23 05:36:35 +09:00
parent c8b6b6e44f
commit 7c7f32d9a6
32 changed files with 1125 additions and 1111 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 { perUserFollowingStats } from '../../stats';
import perUserFollowingChart from '../../../chart/per-user-following';
export default async function(followee: IUser, follower: IUser) {
await Following.insert({
@@ -58,7 +58,7 @@ export default async function(followee: IUser, follower: IUser) {
});
//#endregion
perUserFollowingStats.update(follower, followee, true);
perUserFollowingChart.update(follower, followee, true);
await User.update({ _id: followee._id }, {
$inc: {