diff --git a/ghost/admin/app/services/tenor.js b/ghost/admin/app/services/tenor.js index 1f9de72815..f41347aeaf 100644 --- a/ghost/admin/app/services/tenor.js +++ b/ghost/admin/app/services/tenor.js @@ -26,7 +26,11 @@ export default class TenorService extends Service { _nextPos = null; get apiKey() { - return this.config.get('tenorApiKey'); + return this.config.get('tenor.apiKey'); + } + + get contentfilter() { + return this.config.get('tenor.contentFilter') || 'off'; } get isLoading() { @@ -131,7 +135,8 @@ export default class TenorService extends Service { const url = new URL(versionedPath, API_URL); const params = new URLSearchParams(options.params); - params.append('key', this.apiKey); + params.set('key', this.apiKey); + params.set('contentfilter', this.contentfilter); url.search = params.toString(); diff --git a/ghost/admin/lib/koenig-editor/addon/options/cards.js b/ghost/admin/lib/koenig-editor/addon/options/cards.js index 42d4900502..ef60db0c79 100644 --- a/ghost/admin/lib/koenig-editor/addon/options/cards.js +++ b/ghost/admin/lib/koenig-editor/addon/options/cards.js @@ -224,7 +224,7 @@ export const CARD_MENU = [ payload: { imageSelector: 'tenor' }, - isAvailable: ['feature.gifsCard', 'config.tenorApiKey'] + isAvailable: ['feature.gifsCard', 'config.tenor.apiKey'] }, { label: 'Vimeo',