mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Removed richTwitterNewsletters
GA labs flag
refs https://github.com/TryGhost/Team/issues/1258 - conditional custom-processing of twitter embeds is GA so no longer needs the flag or conditional
This commit is contained in:
parent
cd745e09a8
commit
afb402991d
2 changed files with 1 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
const {extract} = require('oembed-parser');
|
||||
const logging = require('@tryghost/logging');
|
||||
const labs = require('../../shared/labs');
|
||||
|
||||
/**
|
||||
* @typedef {import('./oembed').ICustomProvider} ICustomProvider
|
||||
|
@ -43,7 +42,7 @@ class TwitterOEmbedProvider {
|
|||
/** @type {object} */
|
||||
const oembedData = await extract(url.href);
|
||||
|
||||
if (this.dependencies.config.bearerToken && labs.isSet('richTwitterNewsletters')) {
|
||||
if (this.dependencies.config.bearerToken) {
|
||||
const query = {
|
||||
expansions: ['attachments.poll_ids', 'attachments.media_keys', 'author_id', 'entities.mentions.username', 'geo.place_id', 'in_reply_to_user_id', 'referenced_tweets.id', 'referenced_tweets.id.author_id'],
|
||||
'media.fields': ['duration_ms', 'height', 'media_key', 'preview_image_url', 'type', 'url', 'width', 'public_metrics', 'alt_text'],
|
||||
|
|
|
@ -15,7 +15,6 @@ const messages = {
|
|||
|
||||
// flags in this list always return `true`, allows quick global enable prior to full flag removal
|
||||
const GA_FEATURES = [
|
||||
'richTwitterNewsletters',
|
||||
'audioCard',
|
||||
'mediaAPI',
|
||||
'membersAutoLogin',
|
||||
|
|
Loading…
Add table
Reference in a new issue