-
-
Notifications
You must be signed in to change notification settings - Fork 889
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
Empty text field bodies should be trimmed and set to null if empty #2039
Labels
bug
Something isn't working
Comments
Could probably be done using deserialize_with, like here: https://github.com/LemmyNet/lemmy/pull/1962/files |
This is happening at the API level, when posts are getting inserted. |
dessalines
added a commit
that referenced
this issue
Jan 17, 2022
Nutomic
pushed a commit
that referenced
this issue
Jan 21, 2022
dessalines
added a commit
that referenced
this issue
Jan 27, 2022
dessalines
added a commit
that referenced
this issue
Jan 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Occasionally browsers will set an empty space for text fields, which makes clients show an empty body. The back end should trim all optional text fields and do a replace with null if empty.
The text was updated successfully, but these errors were encountered: