Commit c7f84d75 authored by Zéfling's avatar Zéfling 🎨
Browse files

Fix images in tweets

parent 5f3ce2a9
......@@ -140,6 +140,15 @@ export class TweetsService {
tweet.html_text = tweet.full_text;
// fix media (copy extended_entities in media)
// since 2019-04
if (tweet.extended_entities && tweet.extended_entities.media) {
if (!tweet.entities.media) {
tweet.entities.media = [];
}
tweet.entities.media = tweet.extended_entities.media;
}
// retweet
const retweetUser = tweet.html_text.match(pattern.RTTest);
tweet.retweet = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment