mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 23:38:09 +09:00
fix
This commit is contained in:
parent
e5e1c53ed1
commit
112c18b0e0
@ -165,7 +165,7 @@ module.exports = (params, user, app) =>
|
||||
}
|
||||
|
||||
// テキストが無いかつ添付ファイルが無いかつRepostも無いかつ投票も無かったらエラー
|
||||
if (text === null && files === null && repost === null && pollChoices === null) {
|
||||
if (text === null && files === null && repost === null && poll === null) {
|
||||
return rej('text, media_ids, repost_id or poll is required');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user