Skip to content
Snippets Groups Projects
Commit 4e032a91 authored by syuilo's avatar syuilo
Browse files

[wip] #1455

parent 20e77196
No related branches found
No related tags found
No related merge requests found
......@@ -46,11 +46,13 @@ export default async (user: IUser, note: INote, reaction: string) => new Promise
publishNoteStream(note._id, 'reacted');
// Notify
notify(note.userId, user._id, 'reaction', {
noteId: note._id,
reaction: reaction
});
// リアクションされたユーザーがローカルユーザーなら通知を作成
if (isLocalUser(note._user)) {
notify(note.userId, user._id, 'reaction', {
noteId: note._id,
reaction: reaction
});
}
pushSw(note.userId, 'reaction', {
user: await packUser(user, note.userId),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment