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

feat: throw an error on forum/comment double posts #1559

Merged
merged 6 commits into from
May 10, 2023

Conversation

wescopeland
Copy link
Member

This PR adjusts the function calls for submitting comments and forum topic replies.

If the user submits a duplicate payload on the same article/comment ID, the function now returns an error and the duplicate post is blocked.

This issue can occur when the site doesn't instantly respond to a post submit and the user repeatedly spams the button click. After this change, only the first post will be preserved and all subsequent duplicates are blocked.

Screenshot 2023-05-06 at 9 49 03 PM

@Jamiras Jamiras merged commit 4878e8b into RetroAchievements:master May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants