diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-02 20:11:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-02 20:11:03 +0900 |
| commit | 8caf853c8008d605657650a4ca70c031f31158fe (patch) | |
| tree | 2ef84933258c38c966405ddfdc72651d485b3ac4 /src/server/api | |
| parent | Improve input dialog (diff) | |
| parent | Use primitive type boolean (#3474) (diff) | |
| download | misskey-8caf853c8008d605657650a4ca70c031f31158fe.tar.gz misskey-8caf853c8008d605657650a4ca70c031f31158fe.tar.bz2 misskey-8caf853c8008d605657650a4ca70c031f31158fe.zip | |
Merge branches 'develop', 'develop' and 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/endpoints/notes.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index f7b7b65ca4..b489197076 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -106,9 +106,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { const withFiles = ps.withFiles != undefined ? ps.withFiles : ps.media; - if (withFiles) { - query.fileIds = withFiles ? { $exists: true, $ne: null } : []; - } + if (withFiles) query.fileIds = { $exists: true, $ne: null }; if (ps.poll != undefined) { query.poll = ps.poll ? { $exists: true, $ne: null } : null; |