twikoo-func 1.6.43 → 1.6.44

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/package.json +1 -1
  2. package/utils/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twikoo-func",
3
- "version": "1.6.43",
3
+ "version": "1.6.44",
4
4
  "description": "A simple comment system.",
5
5
  "author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
6
6
  "license": "MIT",
package/utils/index.js CHANGED
@@ -214,7 +214,7 @@ const fn = {
214
214
  return comment.avatar
215
215
  } else {
216
216
  const gravatarCdn = config.GRAVATAR_CDN || 'weavatar.com'
217
- let defaultGravatar = `initials&name=${comment.nick.charAt(0)}`
217
+ let defaultGravatar = `initials&name=${comment.nick}`
218
218
  if (config.DEFAULT_GRAVATAR) {
219
219
  defaultGravatar = config.DEFAULT_GRAVATAR
220
220
  }