mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-13 06:00:52 +01:00
[API] Fix bug
This commit is contained in:
parent
dc5b5aa723
commit
ce0cfbdf84
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ module.exports = (params, user, app) =>
|
||||||
// 投稿を作成
|
// 投稿を作成
|
||||||
const post = await Post.insert({
|
const post = await Post.insert({
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
media_ids: media ? files.map(file => file._id) : undefined,
|
media_ids: files.length > 0 ? files.map(file => file._id) : undefined,
|
||||||
reply_to_id: replyTo ? replyTo._id : undefined,
|
reply_to_id: replyTo ? replyTo._id : undefined,
|
||||||
repost_id: repost ? repost._id : undefined,
|
repost_id: repost ? repost._id : undefined,
|
||||||
poll: poll ? poll : undefined,
|
poll: poll ? poll : undefined,
|
||||||
|
|
Loading…
Reference in a new issue