@waline/vercel 1.17.2 → 1.17.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "waline",
@@ -31,7 +31,7 @@
31
31
  "markdown-it-sub": "^1.0.0",
32
32
  "markdown-it-sup": "^1.0.0",
33
33
  "mathjax-full": "^3.2.0",
34
- "nodemailer": "^6.7.4",
34
+ "nodemailer": "^6.7.5",
35
35
  "nunjucks": "^3.2.3",
36
36
  "phpass": "^0.1.1",
37
37
  "prismjs": "^1.28.0",
@@ -365,7 +365,7 @@ module.exports = class extends BaseRest {
365
365
  });
366
366
  comments.forEach((cmt) => {
367
367
  const countItem = (counts || []).find(({ mail, user_id }) => {
368
- if (user_id) {
368
+ if (cmt.user_id) {
369
369
  return user_id === cmt.user_id;
370
370
  }
371
371
  return mail === cmt.mail;
package/src/logic/base.js CHANGED
@@ -65,6 +65,7 @@ module.exports = class extends think.Logic {
65
65
  'qq',
66
66
  'avatar',
67
67
  '2fa',
68
+ 'label',
68
69
  ],
69
70
  }
70
71
  );
@@ -30,6 +30,7 @@ const CSV_HEADERS = {
30
30
  'type',
31
31
  'url',
32
32
  'avatar',
33
+ 'label',
33
34
  'github',
34
35
  'twitter',
35
36
  'facebook',