twikoo-vercel 1.7.17 → 1.7.18

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.
Files changed (2) hide show
  1. package/api/index.js +1 -1
  2. package/package.json +2 -2
package/api/index.js CHANGED
@@ -406,7 +406,7 @@ async function commentSearch (event, accessToken) {
406
406
  const keyword = getSearchKeyword(event).toLowerCase()
407
407
  const page = Math.max(parseInt(event.page) || 1, 1)
408
408
  const uid = accessToken
409
- const isAdminUser = isAdmin()
409
+ const isAdminUser = isAdmin(accessToken)
410
410
  const limit = parseInt(config.COMMENT_PAGE_SIZE) || 8
411
411
  const sort = event.sort || 'newest'
412
412
  let more = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twikoo-vercel",
3
- "version": "1.7.17",
3
+ "version": "1.7.18",
4
4
  "description": "A simple comment system.",
5
5
  "author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "get-user-ip": "^1.0.1",
15
15
  "mongodb": "^6.3.0",
16
- "twikoo-func": "1.7.17",
16
+ "twikoo-func": "1.7.18",
17
17
  "uuid": "^8.3.2"
18
18
  }
19
19
  }