mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-11 21:28:12 +09:00
Fix #1740
This commit is contained in:
parent
e562b477b6
commit
786e241ff8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user