diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-22 05:41:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-22 05:41:21 +0900 |
| commit | 11e05a3a3298ea072f24ece0ad7a5c8c00bb1b23 (patch) | |
| tree | 0a9ab52c9ed9e1b252f6f50892a1cd91f9d36a92 /src/api/endpoints/posts | |
| parent | wip (diff) | |
| download | sharkey-11e05a3a3298ea072f24ece0ad7a5c8c00bb1b23.tar.gz sharkey-11e05a3a3298ea072f24ece0ad7a5c8c00bb1b23.tar.bz2 sharkey-11e05a3a3298ea072f24ece0ad7a5c8c00bb1b23.zip | |
wip
Diffstat (limited to 'src/api/endpoints/posts')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 7270efaf71..9d791538fe 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -215,7 +215,11 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => { poll: poll, text: text, user_id: user._id, - app_id: app ? app._id : null + app_id: app ? app._id : null, + + // 以下非正規化データ + _reply: reply ? { user_id: reply.user_id } : undefined, + _repost: repost ? { user_id: repost.user_id } : undefined, }); // Serialize |