This commit is contained in:
syuilo
2018-05-07 18:20:15 +09:00
parent d305c7e401
commit 79640d6861
3 changed files with 8 additions and 4 deletions

View File

@@ -295,9 +295,11 @@ export default async (user: IUser, data: {
nm.push(u._id, 'mention');
});
mentionedUsers.filter(u => isRemoteUser(u)).forEach(async u => {
deliver(user, await render(), (u as IRemoteUser).inbox);
});
if (isLocalUser(user)) {
mentionedUsers.filter(u => isRemoteUser(u)).forEach(async u => {
deliver(user, await render(), (u as IRemoteUser).inbox);
});
}
// Append mentions data
if (mentionedUsers.length > 0) {