caris-events / tunalog

🐟 Tunalog is a no-installation, easy-to-use blogging system written in Go.
https://tunalog.org
MIT License
354 stars 18 forks source link

Error creating a post with a title but without content #23

Closed htmfilho closed 2 weeks ago

htmfilho commented 2 weeks ago

After pressing "Publish Post" with the title filled up but the content empty, a blank page and a log error message appear.

Screenshot from 2024-09-04 18-48-17

The content page is required, which is ok, but you may consider showing an error message instead of a blank page.

YamiOdymel commented 2 weeks ago

Post Create/Edit uses EasyMDE, which covers the <textarea>, so <textarea required> won't show the message on form submission.

Since WordPress allows blank posts, we might allow it too.