diff options
author | Tony Antonov <MM263@users.noreply.github.com> | 2020-07-10 19:15:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 21:15:53 -0400 |
commit | 8d2465989230fae7d9aae334a67a726fd6ced912 (patch) | |
tree | d24ddd793036463314a63b201860221dc37503f4 /ui/translations/en.json | |
parent | 7a9a973c897ee9ebd68c071e2e17e561567004b6 (diff) |
Forbid users to use empty titles for posts (#930)
- Add a regex that checks if string contains anything but whitespace
- Check for whitespace-only titles on post creation and edit
- Trim whitespace from titles before saving
- Add frontend validation to title
Diffstat (limited to 'ui/translations/en.json')
-rw-r--r-- | ui/translations/en.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/translations/en.json b/ui/translations/en.json index 89f69f69..cb4347f1 100644 --- a/ui/translations/en.json +++ b/ui/translations/en.json @@ -268,5 +268,6 @@ "block_leaving": "Are you sure you want to leave?", "what_is": "What is", "cake_day_title": "Cake day:", - "cake_day_info": "It's {{ creator_name }}'s cake day today!" + "cake_day_info": "It's {{ creator_name }}'s cake day today!", + "invalid_post_title": "Invalid post title" } |