From 42ffe9ba5105db1156a0712c28a0a121704a5fa2 Mon Sep 17 00:00:00 2001 From: Chris Thomson Date: Mon, 25 Feb 2019 11:07:31 +0000 Subject: [PATCH] Update TweetPHP.php --- TweetPHP.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TweetPHP.php b/TweetPHP.php index 99ccf18..ca49ac8 100644 --- a/TweetPHP.php +++ b/TweetPHP.php @@ -195,7 +195,8 @@ private function parse_tweet ($tweet) { $this->tweet_count++; // Format tweet text - $tweet_text_raw = $tweet['text']; + $text_field = isset($this->options["api_params"]["tweet_mode"]) && $this->options["api_params"]["tweet_mode"] == "extended" ? "full_text" : "text"; + $tweet_text_raw = $tweet[$text_field]; $tweet_text = $this->autolink($tweet_text_raw); // Tweet date is in GMT. Convert to UNIX timestamp in the local time of the tweeter.