mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
[API] Fix bug
This commit is contained in:
parent
20a88982f3
commit
c48e1a416c
@ -243,7 +243,7 @@ module.exports = (params, user, app) =>
|
||||
// 投稿を作成
|
||||
const post = await Post.insert({
|
||||
created_at: new Date(),
|
||||
media_ids: files.length > 0 ? files.map(file => file._id) : undefined,
|
||||
media_ids: files ? files.map(file => file._id) : undefined,
|
||||
reply_to_id: replyTo ? replyTo._id : undefined,
|
||||
repost_id: repost ? repost._id : undefined,
|
||||
poll: poll ? poll : undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user