This commit is contained in:
syuilo
2017-12-22 05:41:21 +09:00
parent 8fd78aebbf
commit 11e05a3a32
2 changed files with 72 additions and 1 deletions

View File

@ -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