Some tweets didn't show the attached image. I found that the media didn't show up in the API response. After some research I found the Twitter developers page which mentions some upcoming changes to the api. Only the first 140 characters of a tweet are taken into consideration, so when an image is added after those 140 characters it's not added as media in the API response.
This PR solves that problem by adding an option to change the tweet_mode. Just changing the mode to "extended" isn't possible, because the full tweet will be displayed instead of the truncated one.
The result with default settings (tweet_mode=compatibility)
Some tweets didn't show the attached image. I found that the media didn't show up in the API response. After some research I found the Twitter developers page which mentions some upcoming changes to the api. Only the first 140 characters of a tweet are taken into consideration, so when an image is added after those 140 characters it's not added as media in the API response.
This PR solves that problem by adding an option to change the
tweet_mode
. Just changing the mode to "extended" isn't possible, because the full tweet will be displayed instead of the truncated one.The result with default settings (
tweet_mode=compatibility
)The result with
tweet_mode=extended