lemmy-ui/src/shared/components
Nutomic 1683a745b5
Dont preselect new post language (#1008)
Lemmy-ui currently preselects the first language in the user
settings when creating a new post or comment. This is a bad
idea because this language might not actually be allowed in
the community. It is better to pass the language as None if
the user didnt specify it explicitly, because then the backend
can smartly choose a language based on the overlap of user
languages and community languages.

This fixes the problem described in
[this thread](https://lemmy.ml/post/1066608), where a user
tries to post in a community that has only English allowed,
with all languages enabled in user settings. In this case
lemmy-ui preselects "undetermined language" as default, which
is not allowed and results in an error. This PR fixes the issue
because it lets the backend automatically select the correct
language (English).
2023-05-13 16:07:05 -04:00
..
app Add support for PWA (#1005) 2023-05-11 21:07:59 -04:00
comment Dont preselect new post language (#1008) 2023-05-13 16:07:05 -04:00
common Dont preselect new post language (#1008) 2023-05-13 16:07:05 -04:00
community Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00
home Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00
person Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00
post Dont preselect new post language (#1008) 2023-05-13 16:07:05 -04:00
private_message Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00
modlog.tsx Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00
search.tsx Using auto-generated types from ts-rs. (#1003) 2023-05-11 14:32:32 -04:00