diff --git a/ghost/admin/app/services/tenor.js b/ghost/admin/app/services/tenor.js index c7bb25325f..186d0e7b6b 100644 --- a/ghost/admin/app/services/tenor.js +++ b/ghost/admin/app/services/tenor.js @@ -25,8 +25,7 @@ export default class TenorService extends Service { _nextPos = null; get apiKey() { - // @TODO confirm this! - return this.config.get('tenor.apiKey'); + return this.config.get('tenor.googleApiKey'); } get contentfilter() { diff --git a/ghost/admin/lib/koenig-editor/addon/options/cards.js b/ghost/admin/lib/koenig-editor/addon/options/cards.js index 63c99a4db1..c42c927ab2 100644 --- a/ghost/admin/lib/koenig-editor/addon/options/cards.js +++ b/ghost/admin/lib/koenig-editor/addon/options/cards.js @@ -195,7 +195,7 @@ export const CARD_MENU = [ payload: { imageSelector: 'tenor' }, - isAvailable: 'config.tenor.publicReadOnlyApiKey' + isAvailable: 'config.tenor.googleApiKey' }, { label: 'Toggle', diff --git a/ghost/core/core/shared/config/defaults.json b/ghost/core/core/shared/config/defaults.json index c0ddeedbc1..492fa74618 100644 --- a/ghost/core/core/shared/config/defaults.json +++ b/ghost/core/core/shared/config/defaults.json @@ -153,7 +153,7 @@ "url": "https://unpkg.com/@tryghost/koenig-react/dist/umd/koenig-react.min.js" }, "tenor": { - "publicReadOnlyApiKey": null, + "googleApiKey": null, "contentFilter": "off" }, "opensea": { diff --git a/ghost/core/test/e2e-api/admin/config.test.js b/ghost/core/test/e2e-api/admin/config.test.js index d0f5ae24c3..4e2ad93bc4 100644 --- a/ghost/core/test/e2e-api/admin/config.test.js +++ b/ghost/core/test/e2e-api/admin/config.test.js @@ -15,12 +15,12 @@ describe('Config API', function () { }); afterEach(function () { - configUtils.set('tenor:publicReadOnlyApiKey', undefined); + configUtils.set('tenor:googleApiKey', undefined); }); it('can retrieve config and all expected properties', async function () { // set any non-default keys so we can be sure they're exposed - configUtils.set('tenor:publicReadOnlyApiKey', 'TENOR_KEY'); + configUtils.set('tenor:googleApiKey', 'TENOR_KEY'); const res = await request .get(localUtils.API.getApiQuery('config/'))