diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-11 17:42:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-11 17:42:56 +0900 |
| commit | 534ef9e999b63c53a7afd8a30d065e29491fd820 (patch) | |
| tree | fb597f11fa85fb821d889b78f1699418170bbb12 /src/server/api/endpoints/users/notes.ts | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | sharkey-534ef9e999b63c53a7afd8a30d065e29491fd820.tar.gz sharkey-534ef9e999b63c53a7afd8a30d065e29491fd820.tar.bz2 sharkey-534ef9e999b63c53a7afd8a30d065e29491fd820.zip | |
Fix bug
Diffstat (limited to 'src/server/api/endpoints/users/notes.ts')
| -rw-r--r-- | src/server/api/endpoints/users/notes.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/server/api/endpoints/users/notes.ts b/src/server/api/endpoints/users/notes.ts index f9f6345e34..e91b75e1d3 100644 --- a/src/server/api/endpoints/users/notes.ts +++ b/src/server/api/endpoints/users/notes.ts @@ -8,10 +8,6 @@ import User from '../../../../models/user'; /** * Get notes of a user - * - * @param {any} params - * @param {any} me - * @return {Promise<any>} */ module.exports = (params, me) => new Promise(async (res, rej) => { // Get 'userId' parameter @@ -118,7 +114,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => { if (withMedia) { query.mediaIds = { $exists: true, - $ne: null + $ne: [] }; } //#endregion |