nodebb-plugin-dbsearch 5.1.2 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dbsearch.js +2 -2
- package/package.json +2 -2
- package/plugin.json +36 -36
package/lib/dbsearch.js
CHANGED
|
@@ -92,8 +92,8 @@ search.actionPostDelete = function (data) {
|
|
|
92
92
|
searchRemove('post', [data.post.pid]);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
search.
|
|
96
|
-
searchRemove('post',
|
|
95
|
+
search.actionPostsPurge = function (data) {
|
|
96
|
+
searchRemove('post', data.posts.map(p => p && p.pid));
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
search.actionPostMove = async function (data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-dbsearch",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
4
4
|
"description": "A Plugin that lets users search posts and topics",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"eslint-plugin-import": "2.25.2"
|
|
28
28
|
},
|
|
29
29
|
"nbbpm": {
|
|
30
|
-
"compatibility": "^1.
|
|
30
|
+
"compatibility": "^1.19.6"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/plugin.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-plugin-dbsearch",
|
|
3
|
-
"name": "DB Search",
|
|
4
|
-
"description": "A Plugin that lets users search posts and topics",
|
|
5
|
-
"url": "https://github.com/barisusakli/nodebb-plugin-dbsearch",
|
|
6
|
-
"library": "./index.js",
|
|
7
|
-
"upgrades": [
|
|
8
|
-
"upgrades/dbsearch_change_mongodb_schema.js"
|
|
9
|
-
],
|
|
10
|
-
"hooks": [
|
|
11
|
-
{ "hook": "static:app.load", "method": "init" },
|
|
12
|
-
{ "hook": "filter:admin.header.build", "method": "admin.menu" },
|
|
13
|
-
|
|
14
|
-
{ "hook": "action:post.save", "method": "actionPostSave" },
|
|
15
|
-
{ "hook": "action:post.restore", "method": "actionPostRestore" },
|
|
16
|
-
{ "hook": "action:post.edit", "method": "actionPostEdit" },
|
|
17
|
-
{ "hook": "action:post.delete", "method": "actionPostDelete" },
|
|
18
|
-
{ "hook": "action:
|
|
19
|
-
{ "hook": "action:post.move", "method": "actionPostMove" },
|
|
20
|
-
{ "hook": "action:post.changeOwner", "method": "actionPostChangeOwner" },
|
|
21
|
-
|
|
22
|
-
{ "hook": "action:topic.save", "method": "actionTopicSave" },
|
|
23
|
-
{ "hook": "action:topic.restore", "method": "actionTopicRestore" },
|
|
24
|
-
{ "hook": "action:topic.edit", "method": "actionTopicEdit" },
|
|
25
|
-
{ "hook": "action:topic.delete", "method": "actionTopicDelete" },
|
|
26
|
-
{ "hook": "action:topic.purge", "method": "actionTopicPurge" },
|
|
27
|
-
{ "hook": "action:topic.move", "method": "actionTopicMove" },
|
|
28
|
-
{ "hook": "action:topic.changeOwner", "method": "actionTopicChangeOwner" },
|
|
29
|
-
|
|
30
|
-
{ "hook": "filter:search.query", "method": "filterSearchQuery" },
|
|
31
|
-
{ "hook": "filter:topic.search", "method": "filterSearchTopic" }
|
|
32
|
-
],
|
|
33
|
-
"modules": {
|
|
34
|
-
"admin/plugins/dbsearch.js": "public/admin.js"
|
|
35
|
-
},
|
|
36
|
-
"templates": "./templates"
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-plugin-dbsearch",
|
|
3
|
+
"name": "DB Search",
|
|
4
|
+
"description": "A Plugin that lets users search posts and topics",
|
|
5
|
+
"url": "https://github.com/barisusakli/nodebb-plugin-dbsearch",
|
|
6
|
+
"library": "./index.js",
|
|
7
|
+
"upgrades": [
|
|
8
|
+
"upgrades/dbsearch_change_mongodb_schema.js"
|
|
9
|
+
],
|
|
10
|
+
"hooks": [
|
|
11
|
+
{ "hook": "static:app.load", "method": "init" },
|
|
12
|
+
{ "hook": "filter:admin.header.build", "method": "admin.menu" },
|
|
13
|
+
|
|
14
|
+
{ "hook": "action:post.save", "method": "actionPostSave" },
|
|
15
|
+
{ "hook": "action:post.restore", "method": "actionPostRestore" },
|
|
16
|
+
{ "hook": "action:post.edit", "method": "actionPostEdit" },
|
|
17
|
+
{ "hook": "action:post.delete", "method": "actionPostDelete" },
|
|
18
|
+
{ "hook": "action:posts.purge", "method": "actionPostsPurge" },
|
|
19
|
+
{ "hook": "action:post.move", "method": "actionPostMove" },
|
|
20
|
+
{ "hook": "action:post.changeOwner", "method": "actionPostChangeOwner" },
|
|
21
|
+
|
|
22
|
+
{ "hook": "action:topic.save", "method": "actionTopicSave" },
|
|
23
|
+
{ "hook": "action:topic.restore", "method": "actionTopicRestore" },
|
|
24
|
+
{ "hook": "action:topic.edit", "method": "actionTopicEdit" },
|
|
25
|
+
{ "hook": "action:topic.delete", "method": "actionTopicDelete" },
|
|
26
|
+
{ "hook": "action:topic.purge", "method": "actionTopicPurge" },
|
|
27
|
+
{ "hook": "action:topic.move", "method": "actionTopicMove" },
|
|
28
|
+
{ "hook": "action:topic.changeOwner", "method": "actionTopicChangeOwner" },
|
|
29
|
+
|
|
30
|
+
{ "hook": "filter:search.query", "method": "filterSearchQuery" },
|
|
31
|
+
{ "hook": "filter:topic.search", "method": "filterSearchTopic" }
|
|
32
|
+
],
|
|
33
|
+
"modules": {
|
|
34
|
+
"../admin/plugins/dbsearch.js": "public/admin.js"
|
|
35
|
+
},
|
|
36
|
+
"templates": "./templates"
|
|
37
37
|
}
|