diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 01:57:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 01:57:19 +0900 |
| commit | e32884f07f0b05028a581c73073fa87da08d9fd0 (patch) | |
| tree | 31389c971f5de0151a0aa375681e8d79464a774b /src/server/api/endpoints | |
| parent | 削除された投稿にリアクションできないように (diff) | |
| download | sharkey-e32884f07f0b05028a581c73073fa87da08d9fd0.tar.gz sharkey-e32884f07f0b05028a581c73073fa87da08d9fd0.tar.bz2 sharkey-e32884f07f0b05028a581c73073fa87da08d9fd0.zip | |
Fix #1740
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/notes/search_by_tag.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes/search_by_tag.ts b/src/server/api/endpoints/notes/search_by_tag.ts index 77082c2600..fadebe4efe 100644 --- a/src/server/api/endpoints/notes/search_by_tag.ts +++ b/src/server/api/endpoints/notes/search_by_tag.ts @@ -128,7 +128,8 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => let q: any = { $and: [{ tagsLower: ps.tag.toLowerCase() - }] + }], + deletedAt: { $exists: false } }; const push = (x: any) => q.$and.push(x); @@ -339,7 +340,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => } if (q.$and.length == 0) { - q = {}; + delete q.$and; } // Search notes |