diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-13 05:11:55 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-13 05:11:55 +0900 |
| commit | 1472f0b141cdcb4f21c4db0d5ff3d84a5f8ccb93 (patch) | |
| tree | 0725ce0c31f7e421576511242c32a9557746a786 /src/services/note | |
| parent | 2.38.0 (diff) | |
| download | sharkey-1472f0b141cdcb4f21c4db0d5ff3d84a5f8ccb93.tar.gz sharkey-1472f0b141cdcb4f21c4db0d5ff3d84a5f8ccb93.tar.bz2 sharkey-1472f0b141cdcb4f21c4db0d5ff3d84a5f8ccb93.zip | |
Fix #1712
Diffstat (limited to 'src/services/note')
| -rw-r--r-- | src/services/note/create.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index ddf07716e4..7eec7485be 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -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 + })) } }); } |