mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
fix: "or" operator.
This commit is contained in:
parent
d2dbeb1a45
commit
a872d659b2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue