mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 15:45:58 +09:00
fix: "or" operator.
This commit is contained in:
parent
02e6b732e9
commit
33495b5cb3
@ -140,7 +140,7 @@ module.exports = (params, user: ILocalUser, app: IApp) => new Promise(async (res
|
||||
}
|
||||
|
||||
// テキストが無いかつ添付ファイルが無いかつRenoteも無いかつ投票も無かったらエラー
|
||||
if ((text === undefined or text === null) && files === null && renote === null && poll === undefined) {
|
||||
if ((text === undefined || text === null) && files === null && renote === null && poll === undefined) {
|
||||
return rej('text, mediaIds, renoteId or poll is required');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user