Skip to content

Node.js based forum software built for the modern web

fix(deps): bump link-preview

Julian Lam81124e40c714
diff --git a/install/package.json b/install/package.json
index f3ade22f34..411ae44196 100644
--- a/install/package.json
+++ b/install/package.json
@@ -106,7 +106,7 @@
"nodebb-plugin-dbsearch": "6.5.1",
"nodebb-plugin-emoji": "6.0.11",
"nodebb-plugin-emoji-android": "4.1.1",
- "nodebb-plugin-link-preview": "2.2.7",
+ "nodebb-plugin-link-preview": "2.2.8",
"nodebb-plugin-markdown": "13.2.5",
"nodebb-plugin-mentions": "4.8.22",
"nodebb-plugin-spam-be-gone": "2.3.3",
diff --git a/src/user/search.js b/src/user/search.js
index 93c58a225b..03a077660e 100644
--- a/src/user/search.js
+++ b/src/user/search.js
@@ -64,7 +64,7 @@ module.exports = function (User) {
}
// Allow plugins to short-circuit with their own results
- const hookResult = await plugins.hooks.fire('static:users.search', {
+ const hookResult = await plugins.hooks.fire('filter:users.searchOverride', {
query, searchBy, uids, uid, hardCap: data.hardCap,
});
uids = hookResult.uids;