mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-06 19:10:54 +01:00
Fixed thing I missed
This commit is contained in:
parent
58537e49c0
commit
476f5154b7
1 changed files with 0 additions and 1 deletions
|
@ -80,7 +80,6 @@ const populateTweetProperties = async (
|
||||||
} else if (mediaObject.type === 'video' || mediaObject.type === 'gif') {
|
} else if (mediaObject.type === 'video' || mediaObject.type === 'gif') {
|
||||||
apiTweet.twitter_card = 'player';
|
apiTweet.twitter_card = 'player';
|
||||||
apiTweet.media = apiTweet.media || {};
|
apiTweet.media = apiTweet.media || {};
|
||||||
apiTweet.media.video = mediaObject as APIVideo;
|
|
||||||
apiTweet.media.videos = apiTweet.media.videos || [];
|
apiTweet.media.videos = apiTweet.media.videos || [];
|
||||||
apiTweet.media.videos.push(mediaObject);
|
apiTweet.media.videos.push(mediaObject);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue