mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
[wip] #1455
This commit is contained in:
parent
20e77196f2
commit
4e032a9188
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user