Fix bug
This commit is contained in:
parent
d305c7e401
commit
79640d6861
3 changed files with 8 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue