diff --git a/inc/class.twitterapi.php b/inc/class.twitterapi.php index 1c64e04c..c03b7e59 100644 --- a/inc/class.twitterapi.php +++ b/inc/class.twitterapi.php @@ -13,6 +13,7 @@ class TwitterApi { public $dbMap = array( "id_str" => "tweetid", "created_at" => "time", + "full_text" => "text", "text" => "text", "source" => "source", "coordinates" => "coordinates", @@ -168,4 +169,4 @@ public function insertQuery($t){ $type = ($t['text'][0] == "@") ? 1 : (preg_match("/RT @\w+/", $t['text']) ? 2 : 0); return "INSERT IGNORE INTO `".DTP."tweets` (`userid`, `tweetid`, `type`, `time`, `text`, `source`, `extra`, `coordinates`, `geo`, `place`, `contributors`) VALUES ('" . $db->s($t['userid']) . "', '" . $db->s($t['tweetid']) . "', '" . $db->s($type) . "', '" . $db->s($t['time']) . "', '" . $db->s($this->entityDecode($t['text'])) . "', '" . $db->s($t['source']) . "', '" . $db->s(serialize($t['extra'])) . "', '" . $db->s(serialize($t['coordinates'])) . "', '" . $db->s(serialize($t['geo'])) . "', '" . $db->s(serialize($t['place'])) . "', '" . $db->s(serialize($t['contributors'])) . "');"; } - } \ No newline at end of file + } diff --git a/maintenance/loadtweets.php b/maintenance/loadtweets.php index e8ec0b0c..95f79d6a 100644 --- a/maintenance/loadtweets.php +++ b/maintenance/loadtweets.php @@ -124,6 +124,8 @@ function importTweets($p){ $params['max_id'] = $maxID; } + $params['tweet_mode'] = 'extended'; + $data = $twitterApi->query('statuses/user_timeline', $params); // Drop out on connection error if(is_array($data) && $data[0] === false){ dieout(l(bad("Error: " . $data[1] . "/" . $data[2]))); }