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

Fix bug

parent ebc2cca0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
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