This commit is contained in:
syuilo 2018-06-13 05:11:55 +09:00
parent 4d914f5c0a
commit 1472f0b141
5 changed files with 36 additions and 4 deletions

View file

@ -329,7 +329,12 @@ export default async (user: IUser, data: {
if (mentionedUsers.length > 0) {
Note.update({ _id: note._id }, {
$set: {
mentions: mentionedUsers.map(u => u._id)
mentions: mentionedUsers.map(u => u._id),
mentionedRemoteUsers: mentionedUsers.filter(u => isRemoteUser(u)).map(u => ({
uri: (u as IRemoteUser).uri,
username: u.username,
host: u.host
}))
}
});
}