mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
[wip] #1455
This commit is contained in:
parent
433816e767
commit
c3b1581094
1 changed files with 7 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue