Ghost/core/server/services/settings/public.js
Naz Gargol 50546d8cba
🔥 Removed deprecated ghost_head and ghost_foot properties from /settings responses (#11144)
no issue 

- Removed ghost_head/ghost_foot propeties from Content API `GET /setting` response
- Removed ghost_head/ghost_foot from the output in Admin API
- Added validation when requesting ghost_head/ghost_food fields
- Updated deprecation comments
2019-09-23 12:59:00 +02:00

32 lines
987 B
JavaScript

/**
* The settings with type "blog" were originally meant to be public
* This has been misused - unsplash and slack are incorrectly stored there
* https://github.com/TryGhost/Ghost/issues/10318
*
* This file acts as a new whitelist for "public" settings
*/
module.exports = {
title: 'title',
description: 'description',
logo: 'logo',
icon: 'icon',
cover_image: 'cover_image',
facebook: 'facebook',
twitter: 'twitter',
default_locale: 'lang',
active_timezone: 'timezone',
// TODO: substitute ghost_head and ghost_foot with codeinjection_* when we drop v2 (Ghost 4.0)
ghost_head: 'ghost_head',
ghost_foot: 'ghost_foot',
navigation: 'navigation',
meta_title: 'meta_title',
meta_description: 'meta_description',
og_image: 'og_image',
og_title: 'og_title',
og_description: 'og_description',
twitter_image: 'twitter_image',
twitter_title: 'twitter_title',
twitter_description: 'twitter_description'
};