Skip to content

Commit 0a6cda0

Browse files
committed
Fetch new longer tweets from Twitter, closing graulund#91. Code based on
suggestion by sburlot.
1 parent 60dc044 commit 0a6cda0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inc/class.twitterapi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TwitterApi {
1313
public $dbMap = array(
1414
"id_str" => "tweetid",
1515
"created_at" => "time",
16-
"text" => "text",
16+
"full_text" => "text",
1717
"source" => "source",
1818
"coordinates" => "coordinates",
1919
"geo" => "geo",

maintenance/loadtweets.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ function importTweets($p){
114114
$userparam => $uservalue,
115115
'include_rts' => true,
116116
'include_entities' => true,
117-
'count' => $maxCount
117+
'count' => $maxCount,
118+
'tweet_mode' => 'extended'
118119
);
119120

120121
if($sinceID){

0 commit comments

Comments
 (0)