mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 07:16:19 +00:00
1683a745b5
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). |
||
---|---|---|
.github | ||
.husky | ||
lemmy-translations@a1fff8b481 | ||
src | ||
.babelrc | ||
.dockerignore | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitmodules | ||
.prettierignore | ||
.prettierrc.json | ||
.woodpecker.yml | ||
accessibility_tests.sh | ||
CONTRIBUTING.md | ||
deploy.sh | ||
dev.dockerfile | ||
Dockerfile | ||
generate_translations.js | ||
LICENSE | ||
package.json | ||
README.md | ||
test_deploy.sh | ||
tsconfig.json | ||
update_translations.sh | ||
webpack.config.js | ||
yarn.lock |
lemmy-ui
The official web app for Lemmy, written in inferno.
Based off of MrFoxPro's inferno-isomorphic-template.
Configuration
The following environment variables can be used to configure lemmy-ui:
ENV_VAR |
type | default | description |
---|---|---|---|
LEMMY_UI_HOST |
string |
0.0.0.0:1234 |
The IP / port that the lemmy-ui isomorphic node server is hosted at. |
LEMMY_UI_LEMMY_INTERNAL_HOST |
string |
0.0.0.0:8536 |
The internal IP / port that lemmy is hosted at. Often lemmy:8536 if using docker. |
LEMMY_UI_LEMMY_EXTERNAL_HOST |
string |
0.0.0.0:8536 |
The external IP / port that lemmy is hosted at. Often DOMAIN.TLD . |
LEMMY_UI_LEMMY_WS_HOST |
string |
0.0.0.0:8536 |
An alternate location for lemmy's websocket address. Not usually necessary. |
LEMMY_UI_HTTPS |
bool |
false |
Whether to use https. |
LEMMY_UI_EXTRA_THEMES_FOLDER |
string |
./extra_themes |
A location for additional lemmy css themes. |
LEMMY_UI_DEBUG |
bool |
false |
Loads the Eruda debugging utility. |
LEMMY_UI_DISABLE_CSP |
bool |
false |
Disables CSP security headers |
LEMMY_UI_CUSTOM_HTML_HEADER |
string |
Injects a custom script into <head> . |