Skip to content

Commit

Permalink
Deal with full_text field on retweets.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 17, 2017
1 parent d8d8d43 commit d425530
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cachetweets.php
Expand Up @@ -152,7 +152,14 @@ function embed_img_url($mediaurl)

$origtweet = $tweet;
if (isset($tweet->retweeted_status))
{
$tweet = $tweet->retweeted_status;
if (isset($tweet->full_text))
{
$tweet->text = $tweet->full_text;
unset($tweet->full_text);
}
}

unset($in_reply_to_name);
$mediahtml = '';
Expand Down

0 comments on commit d425530

Please sign in to comment.