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

[Bug]: 开启了 COMMENT_AUDIT 审核评论后,首次提交的时候评论还是会显示出来 || [Bug]: After turning on COMMENT_AUDIT to review comments, the comments will still be displayed when submitting for the first time. #2562

Open
luobogor opened this issue Jun 16, 2024 · 1 comment
Labels
discussion Question or dicussion

Comments

@luobogor
Copy link

luobogor commented Jun 16, 2024

问题描述 | Describe the bug

开启了 COMMENT_AUDIT 为 true 设置评论审核。但是提交的时候评论还是会显示出来,要刷新一下页面评论才会消失。实际上提交之后我希望通过一次 toast 让用户知道已经成功,让他等审核就可以。现在这样显示出来可能会让用户误以为评论成功,然后刷新页面一看又没了就很奇怪。能不能加多一个配置让开发者自己决定要不要马上显示评论。

问题网站 | Website URL

https://indiehackertools.net/tools/free-for-dev

服务部署在哪里? | Where your waline deploy?

Vercel (Default)

数据存储在哪里?| Where your comment data store?

LeanCloud(https://leancloud.app)


Problem description | Describe the bug

Enable COMMENT_AUDIT to true to set comment moderation. However, the comments will still be displayed when submitting, and the comments will disappear after refreshing the page. In fact, after submitting, I hope to let the user know that it has been successful through a toast and let him wait for review. Displaying it like this now may make users mistakenly think that the comment is successful, and then refresh the page and see that it is gone again, which is very strange. Can you add another configuration to let developers decide whether to display comments immediately?

Question Website | Website URL

https://indiehackertools.net/tools/free-for-dev

Where is the service deployed? | Where your waline deploy?

Vercel (Default)

Where is the data stored? | Where your comment data store?

LeanCloud(https://leancloud.app)

@luobogor luobogor added the bug Something isn't working label Jun 16, 2024
@github-actions github-actions bot changed the title [Bug]: 开启了 COMMENT_AUDIT 审核评论后,首次提交的时候评论还是会显示出来 [Bug]: 开启了 COMMENT_AUDIT 审核评论后,首次提交的时候评论还是会显示出来 || [Bug]: After turning on COMMENT_AUDIT to review comments, the comments will still be displayed when submitting for the first time. Jun 16, 2024
@lizheming lizheming added discussion Question or dicussion and removed bug Something isn't working labels Jun 26, 2024
@lizheming
Copy link
Collaborator

lizheming commented Jun 26, 2024

现在这个交互主要是前台插入的,用这个交互来表示评论发布成功。你说的这种交互也是可以的,但盲目的选择了你的这种交互,可能会导致习惯了之前的交互的同学又有疑惑。所以官方客户端可能需要等更多类似的反馈出来之后再考虑处理,暂时还不会去修改这个交互。

针对你的问题,你有以下几个方案:

  1. 开启强制登录评论。当前登录的用户的评论,即使是在审核状态,也是会给用户展示的。这样可以规避刷新一下就没有了的问题。
  2. 自行 fork 官方客户端,修改这块的交互

Now this interaction is mainly inserted in the front desk, and this interaction is used to indicate that the comment has been published successfully. The kind of interaction you mentioned is also possible, but blindly choosing your kind of interaction may cause confusion among students who are used to previous interactions. Therefore, the official client may need to wait for more similar feedback before considering processing it, and will not modify this interaction for the time being.

Regarding your problem, you have the following options:

  1. Enable forced login to comment. Comments from the currently logged-in user will be displayed to the user even if they are in review status. This can avoid the problem of disappearing after refreshing.
  2. Fork the official client by yourself and modify the interaction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Question or dicussion
Projects
None yet
Development

No branches or pull requests

2 participants