LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
886 stars 332 forks source link

[Bug]: Lemmy backend should respond with a descriptive error message when title length is too long #2227

Open mafik opened 1 year ago

mafik commented 1 year ago

Requirements

Summary

Here is a post describing by journey: https://lemmy.world/post/7154024

Steps to Reproduce

  1. Create a post with ~100 of ampersands
  2. Lemmy fails to create new post (the submit button spins forever) even though the title length is below 200 characters.

Technical Details

See https://lemmy.world/post/7154024

Version

BE 0.18.5

Lemmy Instance URL

lemmy.world

varshard commented 11 months ago

So, Lemmy should validate post title length before it it the database.

Nutomic commented 11 months ago

Lemmy backend returns an error message {"error":"couldnt_create_post"} in that case, but lemmy-ui doesnt handle it which results in infinite spin. Moving this to lemmy-ui repo.