Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最近评论数据存在不同的时间格式需要适配 #348

Closed
Theo-Messi opened this issue Sep 2, 2023 · 6 comments · Fixed by #379
Closed

最近评论数据存在不同的时间格式需要适配 #348

Theo-Messi opened this issue Sep 2, 2023 · 6 comments · Fixed by #379
Labels
bug Something isn't working

Comments

@Theo-Messi
Copy link

在文章下方可以评论,但是在首页最近评论一直没有显示(服务器地址也填了)

waline:
  enable: true
  reaction: true
  login: 'disable'
  meta: ['nick', 'mail']
  requiredMeta: ['nick', 'mail']
  commentSorting: 'latest'
  wordLimit: 0
  imageUploader: true
  recentComment: true
  pageSize: 10
  serverURL: 'https://xxxxxxx' 

@bennyxguo
Copy link
Member

发一下控制台的截图,看看有什么报错。

@Theo-Messi
Copy link
Author

Theo-Messi commented Sep 4, 2023

已解决
只需要将serverURL里的https://删掉即可

waline:
  enable: true
  reaction: true
  login: 'disable'
  meta: ['nick', 'mail']
  requiredMeta: ['nick', 'mail']
  commentSorting: 'latest'
  wordLimit: 0
  imageUploader: true
  recentComment: true
  pageSize: 10
  serverURL: 'xxxxxxx' 

@Ryaang
Copy link

Ryaang commented Sep 7, 2023

发一下控制台的截图,看看有什么报错。

我也是最近评论无法显示,看控制台似乎是时间解析错误

Uncaught (in promise) RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at k6.mapComment (index_prod-00ee5e98.js:44:7022)
    at index_prod-00ee5e98.js:44:6965
    at Array.map (<anonymous>)
    at k6.getRecentComments (index_prod-00ee5e98.js:44:6953)
    at async fetchRecentComment (index_prod-00ee5e98.js:44:9322)

不知道是否是我waline配置的问题,您也可以访问我的网页https://www.zair.top/查看

@bennyxguo
Copy link
Member

@Tim-Saijun 看来是不同的 Waline 用不同的数据库,时间的格式会有所不同。你这边 Waline 用的是什么数据库?

@Ryaang
Copy link

Ryaang commented Sep 8, 2023

@Tim-Saijun 看来是不同的 Waline 用不同的数据库,时间的格式会有所不同。你这边 Waline 用的是什么数据库?

我用的是leancloud的结构化数据存储的,如下图
image

@bennyxguo bennyxguo added the bug Something isn't working label Sep 10, 2023
@bennyxguo bennyxguo changed the title 最近评论无显示 最近评论数据存在不同的时间格式需要适配 Sep 12, 2023
@bennyxguo bennyxguo moved this from Backlog to Developing in Hexo Aurora 2.x Roadmap Sep 12, 2023
@bennyxguo bennyxguo added this to the v2.5.1 milestone Sep 12, 2023
@bennyxguo
Copy link
Member

@Tim-Saijun 可以提供一下你的 waline 地址吗?可以进 QQ 群然后私发给我。

@bennyxguo bennyxguo added the help wanted Extra attention is needed label Sep 16, 2023
@bennyxguo bennyxguo removed this from the v2.5.1 milestone Sep 16, 2023
@bennyxguo bennyxguo removed the help wanted Extra attention is needed label Sep 16, 2023
@github-project-automation github-project-automation bot moved this from Developing to Ready to deploy in Hexo Aurora 2.x Roadmap Sep 16, 2023
@bennyxguo bennyxguo moved this from Ready to deploy to Published in Hexo Aurora 2.x Roadmap Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants