0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Set soft limits for blog title and description (#9250)

refs #8143

Add max length validations to settings:
- `blog.title`: 150 chars
- `blog.description`: 200 chars

The `validateSettings` fn in our validations checks for existing `validations` properties in our `default-settings.json` file, similar to other tables in our `schema.js`.
This commit is contained in:
Aileen Nowak 2017-11-16 20:58:22 +08:00 committed by Katharina Irrgang
parent 31ee7bb4e1
commit 1bb9d4ff00

View file

@ -15,10 +15,20 @@
},
"blog": {
"title": {
"defaultValue": "Ghost"
"defaultValue": "Ghost",
"validations": {
"isLength": {
"max": 150
}
}
},
"description": {
"defaultValue": "The professional publishing platform"
"defaultValue": "The professional publishing platform",
"validations": {
"isLength": {
"max": 200
}
}
},
"logo": {
"defaultValue": "https://casper.ghost.org/v1.0.0/images/ghost-logo.svg"