Refactoring
This commit is contained in:
parent
c8b6b6e44f
commit
7c7f32d9a6
32 changed files with 1125 additions and 1111 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue