mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
fix: check if unread_tids are followed
This commit is contained in:
@@ -318,6 +318,9 @@ module.exports = function (module) {
|
||||
if (!key) {
|
||||
return;
|
||||
}
|
||||
if (!values.length) {
|
||||
return [];
|
||||
}
|
||||
values = values.map(helpers.valueToString);
|
||||
const results = await module.client.collection('objects').find({
|
||||
_key: key, value: { $in: values },
|
||||
|
||||
Reference in New Issue
Block a user