diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-17 00:05:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-17 00:05:57 +0900 |
| commit | b78d24be1eb0def86c70c236576206bcf2967e86 (patch) | |
| tree | b4d87173069dd8845e77d480be3a75cb62bccab7 /src/services | |
| parent | autoWatchをデフォルトでfalseに (diff) | |
| download | sharkey-b78d24be1eb0def86c70c236576206bcf2967e86.tar.gz sharkey-b78d24be1eb0def86c70c236576206bcf2967e86.tar.bz2 sharkey-b78d24be1eb0def86c70c236576206bcf2967e86.zip | |
Fix bug
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/note/create.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index b219d1ca51..eccc4a7fcb 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -328,8 +328,18 @@ async function insertNote(user: IUser, data: Option, tokens: ReturnType<typeof p : [], // 以下非正規化データ - _reply: data.reply ? { userId: data.reply.userId } : null, - _renote: data.renote ? { userId: data.renote.userId } : null, + _reply: data.reply ? { + userId: data.reply.userId, + user: { + host: data.reply._user.host + } + } : null, + _renote: data.renote ? { + userId: data.renote.userId, + user: { + host: data.reply._user.host + } + } : null, _user: { host: user.host, inbox: isRemoteUser(user) ? user.inbox : undefined |