mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 15:53:09 +02:00
[wip] #1455
This commit is contained in:
parent
20e77196f2
commit
4e032a9188
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');
|
publishNoteStream(note._id, 'reacted');
|
||||||
|
|
||||||
// Notify
|
// リアクションされたユーザーがローカルユーザーなら通知を作成
|
||||||
notify(note.userId, user._id, 'reaction', {
|
if (isLocalUser(note._user)) {
|
||||||
noteId: note._id,
|
notify(note.userId, user._id, 'reaction', {
|
||||||
reaction: reaction
|
noteId: note._id,
|
||||||
});
|
reaction: reaction
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
pushSw(note.userId, 'reaction', {
|
pushSw(note.userId, 'reaction', {
|
||||||
user: await packUser(user, note.userId),
|
user: await packUser(user, note.userId),
|
||||||
|
|
Loading…
Reference in a new issue