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

valine评论似乎有点问题? #88

Open
ilittlemoe opened this issue May 14, 2019 · 1 comment
Open

valine评论似乎有点问题? #88

ilittlemoe opened this issue May 14, 2019 · 1 comment
Labels
question Further information is requested

Comments

@ilittlemoe
Copy link

你好:

我现在正在使用valine评论系统。

之前我使用Next主题时,我可以让Valine拥有验证步骤,输入了相应的验证码,或者正确答案才可以发表评论。

但是使用了suka主题后,我不知道是主题的问题还是我配置不当导致的原因,在我的Blog评论区下方,似乎可以随意的评论,并不需要验证码或者邮箱就可以发言。我想增加一些评论的难度,防止恶意的评论。以下是我的主题配置:

  use: valine
  valine: 
    leancloud_appId:  SabiX9JJSVefohMzMrtl9d24-gzGzoHsz # leancloud application app id
    leancloud_appKey:  YYdW0rtWlWWKN0TCEvaNtvk3 # leancloud application app key
    notify: true  # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
    verify: true  # valine verify code (true/false)
    pageSize: 10 # comment list page size
    avatar: retro # gravatar style https://valine.js.org/#/avatar
    lang: zh-cn # i18n
    placeholder: 1123 # valine comment input placeholder(like: Please leave your footprints )
    guest_info: nick,mail,link #valine comment header info
    highlight: true
    avatarForce: false
    recprdIP: true
    meta: true

根据我搜索的资料,我所知Verify是验证,但我开启(true)也毫无作用,我不知道是怎么回事,可以麻烦你帮我测试一下吗?

@SukkaW SukkaW added the question Further information is requested label May 15, 2019
@time-todie
Copy link

time-todie commented Mar 3, 2020

在\themes\suka\layout_plugin\comment\valine\main.ejs中,我找到这些东西:

    new Valine({
        el: '#vcomments',
        notify: notify,
        verify: verify,
        appId: "<%= theme.comment.valine.leancloud_appId %>",

要不你试试把verify后面的直接改成 true 或 false?我也是蒙的。我之前的主题也出了这毛病,貌似手工改掉后面的布尔值会改好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants