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

使用web组件方式加载评论无法显示邮箱头像 #121

Open
mjsoftking opened this issue May 4, 2024 · 5 comments
Open

使用web组件方式加载评论无法显示邮箱头像 #121

mjsoftking opened this issue May 4, 2024 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@mjsoftking
Copy link

<comment-widget
        baseUrl="https://demo.halo.run"
        group="content.halo.run"
        kind="Post"
        version="v1alpha1"
        name="e0507f6f-88bb-4d3c-a90a-a88aba222035"
      ></comment-widget>

这种和pjax兼容的加载方式,不能显示邮箱头像!

@mjsoftking
Copy link
Author

mjsoftking commented May 4, 2024

另外这个头像不是作为头像字段返回的,现在通过api获取的侧边栏评论无法显示这个头像,也不知道返回的字段是什么?

@ruibaby
Copy link
Member

ruibaby commented May 7, 2024

/kind bug

@f2c-ci-robot f2c-ci-robot bot added the kind/bug Categorizes issue or PR as related to a bug. label May 7, 2024
@ruibaby
Copy link
Member

ruibaby commented May 7, 2024

另外这个头像不是作为头像字段返回的,现在通过api获取的侧边栏评论无法显示这个头像,也不知道返回的字段是什么?

目前头像有两种来源,一种是注册用户,一种是匿名用户使用 Gravatar,具体可查阅:#111

如果是注册用户无法加载头像,应该是没有拼接 baseUrl

@mjsoftking
Copy link
Author

@ruibaby 看了一下再结合其他主题的做法已经弄出来了,但是需要主题设置中额外配置一下镜像源,有没有什么api可以直接获取到插件中设置的镜像源呢

@ruibaby
Copy link
Member

ruibaby commented May 11, 2024

@ruibaby 看了一下再结合其他主题的做法已经弄出来了,但是需要主题设置中额外配置一下镜像源,有没有什么api可以直接获取到插件中设置的镜像源呢

这个好像暂时没有办法,因为主题目前无法直接获取到插件的设置,这本身也是不安全的。当前建议在主题提供配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants