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

默认评论没有随机头像或者从腾讯QQ获取头像 #5610

Closed
carolcoral opened this issue Mar 28, 2024 · 9 comments
Closed

默认评论没有随机头像或者从腾讯QQ获取头像 #5610

carolcoral opened this issue Mar 28, 2024 · 9 comments
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@carolcoral
Copy link

Your current Halo version

2.14.0-rc.1

Describe this feature

默认评论没有随机头像或者从腾讯QQ获取头像

image

Additional information

No response

@carolcoral
Copy link
Author

@ruibaby
Copy link
Member

ruibaby commented Mar 28, 2024

感谢反馈此问题,后续将在评论组件中兼容 Gravatar,会根据邮箱生成 Gravatar 链接,halo-dev/plugin-comment-widget#97

但 QQ 似乎不是很好支持,如果要支持还需要让访客填写 QQ,并且没有字段用于存储这个信息。我不认为这是一个好的方案,并且也不是类似于 Gravatar 的公共头像服务。

/triage duplicate

@f2c-ci-robot f2c-ci-robot bot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Mar 28, 2024
@carolcoral
Copy link
Author

感谢反馈此问题,后续将在评论组件中兼容 Gravatar,会根据邮箱生成 Gravatar 链接,halo-dev/plugin-comment-widget#97

但 QQ 似乎不是很好支持,如果要支持还需要让访客填写 QQ,并且没有字段用于存储这个信息。我不认为这是一个好的方案,并且也不是类似于 Gravatar 的公共头像服务。

/triage duplicate

可以考虑使用邮箱字段:

  1. 判断当前用户是否已登录,如果登录则使用登录账号的头像
  2. 如果未登录则判断当前填写的邮箱内容后缀为 @qq.com 则获取前面的QQ号码生成QQ头像即可,否则就使用avatar随机头像

@carolcoral
Copy link
Author

随机头像可以考虑使用改rep,感觉好看点:https://github.com/multiavatar/Multiavatar

@guqing
Copy link
Member

guqing commented Mar 28, 2024

随机头像可以考虑使用改rep,感觉好看点:multiavatar/Multiavatar

有想过,或许可以

@adozhao
Copy link

adozhao commented Mar 29, 2024

默认直接搞 ryanc 的头像吧, 毕竟那么帅
03736097

@carolcoral
Copy link
Author

ryanc

ryan 头像?感觉可能不太合适,没有提供可用的api或js钩子呢

@ruibaby
Copy link
Member

ruibaby commented Oct 10, 2024

已经在 #5642halo-dev/plugin-comment-widget#111 中支持 Gravatar。

/close

@f2c-ci-robot f2c-ci-robot bot closed this as completed Oct 10, 2024
Copy link

f2c-ci-robot bot commented Oct 10, 2024

@ruibaby: Closing this issue.

In response to this:

已经在 #5642halo-dev/plugin-comment-widget#111 中支持 Gravatar。

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

4 participants