tkserver 1.6.26 → 1.6.27
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/index.js +3 -0
- package/mongo.js +3 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -813,6 +813,9 @@ async function getRecentComments (event) {
|
|
|
813
813
|
try {
|
|
814
814
|
const query = {}
|
|
815
815
|
query.isSpam = { $ne: true }
|
|
816
|
+
if (event.urls && event.urls.length) {
|
|
817
|
+
query.url = { $in: getUrlsQuery(event.urls) }
|
|
818
|
+
}
|
|
816
819
|
if (!event.includeReply) query.rid = { $exists: false }
|
|
817
820
|
if (event.pageSize > 100) event.pageSize = 100
|
|
818
821
|
const result = db
|
package/mongo.js
CHANGED
|
@@ -807,6 +807,9 @@ async function getRecentComments (event) {
|
|
|
807
807
|
try {
|
|
808
808
|
const query = {}
|
|
809
809
|
query.isSpam = { $ne: true }
|
|
810
|
+
if (event.urls && event.urls.length) {
|
|
811
|
+
query.url = { $in: getUrlsQuery(event.urls) }
|
|
812
|
+
}
|
|
810
813
|
if (!event.includeReply) query.rid = { $in: ['', null] }
|
|
811
814
|
if (event.pageSize > 100) event.pageSize = 100
|
|
812
815
|
const result = await db
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tkserver",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.27",
|
|
4
4
|
"description": "A simple comment system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twikoo",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"get-user-ip": "^1.0.1",
|
|
32
32
|
"lokijs": "^1.5.12",
|
|
33
33
|
"mongodb": "^3.6.3",
|
|
34
|
-
"twikoo-func": "1.6.
|
|
34
|
+
"twikoo-func": "1.6.27",
|
|
35
35
|
"uuid": "^8.3.2"
|
|
36
36
|
}
|
|
37
37
|
}
|