mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Don't require description to setup with title
refs https://github.com/TryGhost/Team/issues/1382 - PR feedback - Self hosters don't have the option to add a site description when setting up - Update the logic to continue with the settings setup, even when no description is given
This commit is contained in:
parent
92d9029500
commit
de2e894c53
1 changed files with 2 additions and 6 deletions
|
@ -77,7 +77,7 @@ async function doSettings(data, settingsAPI) {
|
|||
const context = {context: {user: data.user.id}};
|
||||
const user = data.user;
|
||||
const blogTitle = data.userData.blogTitle;
|
||||
const description = data.userData.description;
|
||||
const description = data.userData.description ? data.userData.description.trim() : null;
|
||||
|
||||
let userSettings;
|
||||
|
||||
|
@ -85,13 +85,9 @@ async function doSettings(data, settingsAPI) {
|
|||
return user;
|
||||
}
|
||||
|
||||
if (!description || typeof description !== 'string') {
|
||||
return user;
|
||||
}
|
||||
|
||||
userSettings = [
|
||||
{key: 'title', value: blogTitle.trim()},
|
||||
{key: 'description', value: description.trim() || tpl(messages.sampleBlogDescription)}
|
||||
{key: 'description', value: description || tpl(messages.sampleBlogDescription)}
|
||||
];
|
||||
|
||||
if (data.userData.accentColor) {
|
||||
|
|
Loading…
Add table
Reference in a new issue