0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/shared/settings-cache/public.js
Hannah Wolfe 1d121c52f4
Replaced white/black list terminology
refs 92986b77e3

- I thought we did this a while ago, but uses in comments and elsewhere in the codebase were missed
2022-04-19 11:19:59 +01:00

34 lines
1 KiB
JavaScript

/**
* The settings with type "site" 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 an allowlist for "public" settings
*/
module.exports = {
title: 'title',
description: 'description',
logo: 'logo',
icon: 'icon',
accent_color: 'accent_color',
cover_image: 'cover_image',
facebook: 'facebook',
twitter: 'twitter',
lang: 'lang',
locale: 'lang',
timezone: 'timezone',
codeinjection_head: 'codeinjection_head',
codeinjection_foot: 'codeinjection_foot',
navigation: 'navigation',
secondary_navigation: 'secondary_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',
members_support_address: 'members_support_address'
};