mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Added "useGravatar" to config endpoint in Admin API v2
no issue
This commit is contained in:
parent
a1023f0b11
commit
d6872de0b2
@ -14,7 +14,7 @@ module.exports = {
|
|||||||
environment: config.get('env'),
|
environment: config.get('env'),
|
||||||
database: config.get('database').client,
|
database: config.get('database').client,
|
||||||
mail: isPlainObject(config.get('mail')) ? config.get('mail').transport : '',
|
mail: isPlainObject(config.get('mail')) ? config.get('mail').transport : '',
|
||||||
|
useGravatar: !config.isPrivacyDisabled('useGravatar'),
|
||||||
labs: labs.getAll(),
|
labs: labs.getAll(),
|
||||||
clientExtensions: config.get('clientExtensions') || {},
|
clientExtensions: config.get('clientExtensions') || {},
|
||||||
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false
|
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false
|
||||||
|
@ -22,7 +22,7 @@ const expectedProperties = {
|
|||||||
|
|
||||||
action: ['id', 'resource_type', 'actor_type', 'event', 'created_at', 'actor'],
|
action: ['id', 'resource_type', 'actor_type', 'event', 'created_at', 'actor'],
|
||||||
|
|
||||||
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments'],
|
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar'],
|
||||||
|
|
||||||
post: _(schema.posts)
|
post: _(schema.posts)
|
||||||
.keys()
|
.keys()
|
||||||
|
Loading…
Reference in New Issue
Block a user