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

Change logic for determining comment default language (fixes #3451) #3672

Merged
merged 1 commit into from Jul 21, 2023

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Jul 20, 2023

When submitting a comment without explicit language id, it would currently always use the post language. Users have reported many problems with this recently. One case is if the post language was previously allowed in the community, but later disallowed. Then all replies to that post without explicit language will throw an error.

The logic for default post language (based on overlap of user languages and community languages) seems to be working much more reliably, so we can use it for comments as well.

This change might allow us to get rid of the workaround in #2851 in the future.

@Nutomic Nutomic force-pushed the change-comment-default-lang-logic branch from 3e3473e to aaa447d Compare July 21, 2023 10:13
@dessalines dessalines merged commit 102124b into main Jul 21, 2023
2 checks passed
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.

None yet

2 participants