From ff13df2cd5ec6f38641b16bd3a20004290911f78 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Aug 2018 21:34:12 +0900 Subject: [PATCH] Fix bug --- src/services/note/create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 4f90a19f2..85a03fdc0 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -188,6 +188,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< // 通知 if (isLocalUser(data.reply._user)) { nm.push(data.reply.userId, 'reply'); + publishUserStream(data.reply.userId, 'reply', noteObj); } } @@ -209,7 +210,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< } // Publish event - if (!user._id.equals(data.renote.userId)) { + if (!user._id.equals(data.renote.userId) && isLocalUser(data.renote._user)) { publishUserStream(data.renote.userId, 'renote', noteObj); } }