Added "useGravatar" to config endpoint in Admin API v2

no issue
This commit is contained in:
kirrg001 2019-02-25 15:39:47 +01:00
parent a1023f0b11
commit d6872de0b2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()