mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 05:20:24 +01:00
Compare commits
19 Commits
ea1309e690
...
v1.18.7-be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f8f2e9168 | ||
|
|
edae9522b5 | ||
|
|
7ff2b7fbb1 | ||
|
|
22e74dc0bb | ||
|
|
27acf19325 | ||
|
|
0f29433baf | ||
|
|
ebe7f11d0b | ||
|
|
c248805165 | ||
|
|
830cddfb40 | ||
|
|
abbbc3d7c2 | ||
|
|
8593ea87e9 | ||
|
|
1d401329ee | ||
|
|
9e52236973 | ||
|
|
eff03e4b57 | ||
|
|
854c078b73 | ||
|
|
36653525bd | ||
|
|
0409403f5b | ||
|
|
839673d321 | ||
|
|
d220d1d461 |
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "1.18.5",
|
||||
"version": "1.18.6",
|
||||
"homepage": "http://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -89,7 +89,7 @@
|
||||
"nodebb-plugin-emoji": "^3.5.0",
|
||||
"nodebb-plugin-emoji-android": "2.0.5",
|
||||
"nodebb-plugin-markdown": "8.14.4",
|
||||
"nodebb-plugin-mentions": "3.0.2",
|
||||
"nodebb-plugin-mentions": "3.0.3",
|
||||
"nodebb-plugin-spam-be-gone": "0.7.11",
|
||||
"nodebb-rewards-essentials": "0.2.0",
|
||||
"nodebb-theme-lavender": "5.3.1",
|
||||
@@ -182,4 +182,4 @@
|
||||
"url": "https://github.com/barisusakli"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ module.exports = function (Categories) {
|
||||
let cids = await findCids(query, data.hardCap);
|
||||
|
||||
const result = await plugins.hooks.fire('filter:categories.search', {
|
||||
data: data,
|
||||
cids: cids,
|
||||
uid: uid,
|
||||
});
|
||||
|
||||
@@ -50,12 +50,10 @@ module.exports = function (SocketCategories) {
|
||||
};
|
||||
|
||||
async function findMatchedCids(uid, data) {
|
||||
const result = await categories.search({
|
||||
uid: uid,
|
||||
query: data.search,
|
||||
paginate: false,
|
||||
});
|
||||
|
||||
const params = { ...data, uid, paginate: false };
|
||||
params.query = data.search;
|
||||
params.qs = data.query;
|
||||
const result = await categories.search(params);
|
||||
|
||||
let matchedCids = result.categories.map(c => c.cid);
|
||||
// no need to filter if all 3 states are used
|
||||
|
||||
Reference in New Issue
Block a user