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:
parent
31ee7bb4e1
commit
1bb9d4ff00
1 changed files with 12 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue