mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 10:00:55 +01:00
Use player card with external videos
This commit is contained in:
parent
7d759f8dc7
commit
ee6dac00d5
1 changed files with 1 additions and 2 deletions
|
@ -217,6 +217,7 @@ export const buildAPITwitterStatus = async (
|
|||
if (status.card) {
|
||||
const card = renderCard(status.card);
|
||||
if (card.external_media) {
|
||||
apiStatus.embed_card = 'player';
|
||||
apiStatus.media.external = card.external_media;
|
||||
if (apiStatus.media.external.url.match('https://www.youtube.com/embed/')) {
|
||||
/* Add YouTube thumbnail URL */
|
||||
|
@ -245,8 +246,6 @@ export const buildAPITwitterStatus = async (
|
|||
height: 720
|
||||
};
|
||||
|
||||
console.log(apiStatus.media.external)
|
||||
|
||||
apiStatus.embed_card = 'player';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue