Implement #2980
This commit is contained in:
@@ -8,6 +8,7 @@ import watch from '../watch';
|
||||
import renderLike from '../../../remote/activitypub/renderer/like';
|
||||
import { deliver } from '../../../queue';
|
||||
import pack from '../../../remote/activitypub/renderer';
|
||||
import { perUserReactionsStats } from '../../stats';
|
||||
|
||||
export default async (user: IUser, note: INote, reaction: string) => new Promise(async (res, rej) => {
|
||||
// Myself
|
||||
@@ -43,6 +44,8 @@ export default async (user: IUser, note: INote, reaction: string) => new Promise
|
||||
$inc: inc
|
||||
});
|
||||
|
||||
perUserReactionsStats.update(user, note);
|
||||
|
||||
publishNoteStream(note._id, 'reacted', {
|
||||
reaction: reaction,
|
||||
userId: user._id
|
||||
|
Reference in New Issue
Block a user