diff --git a/feed.php b/feed.php index 733c995..795f1e8 100644 --- a/feed.php +++ b/feed.php @@ -12,7 +12,7 @@ print(' '.$td[$i]['user']['screen_name'].': '.htmlspecialchars($td[$i]['text']).''. PHP_EOL); print(' '. PHP_EOL); - $feedContent = ' '.nl2br($td[$i]['text']).'

]]>
'; + $feedContent = ' '.nl2br($td[$i]['full_text']).'

]]>
'; $text = processString($feedContent); print($text . PHP_EOL); diff --git a/home.php b/home.php index 0342926..b4a97d5 100644 --- a/home.php +++ b/home.php @@ -9,6 +9,7 @@ 'exclude_replies' => !$home_include_replies, 'include_entities' => 'true', 'include_rts' => $home_include_rts, + 'tweet_mode' => 'extended', ); include "functions.php"; diff --git a/list.php b/list.php index 69ffd8b..01df68e 100644 --- a/list.php +++ b/list.php @@ -4,22 +4,23 @@ $path = '/1.1/lists/statuses.json'; // api call path $query = array( // query parameters - 'owner_screen_name' => $owner, - 'slug' => $list, - 'count' => $count, - 'include_rts' => $list_include_rts, + 'owner_screen_name' => $owner, + 'slug' => $list, + 'count' => $count, + 'include_rts' => $list_include_rts, 'include_entities' => 'true', - 'trim_user' => 'false' + 'trim_user' => 'false', + 'tweet_mode' => 'extended', ); include "functions.php"; if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' - || $_SERVER['SERVER_PORT'] == 443) { + || $_SERVER['SERVER_PORT'] == 443) { - $protocol = 'https://'; + $protocol = 'https://'; } else { - $protocol = 'http://'; + $protocol = 'http://'; } print(''. PHP_EOL); diff --git a/search.php b/search.php index 5ca3cb6..8f10a9e 100644 --- a/search.php +++ b/search.php @@ -9,7 +9,8 @@ 'q' => $q, 'count' => $count, 'include_entities' => 'true', - 'result_type' => $search_result_type + 'result_type' => $search_result_type, + 'tweet_mode' => 'extended', ); include "functions.php"; diff --git a/user.php b/user.php index 0adb68c..db2a0fd 100644 --- a/user.php +++ b/user.php @@ -4,21 +4,22 @@ $path = '/1.1/statuses/user_timeline.json'; // api call path $query = array( // query parameters - 'screen_name' => $screen_name, - 'count' => $count, - 'trim_user' => 'false', + 'screen_name' => $screen_name, + 'count' => $count, + 'trim_user' => 'false', 'exclude_replies' => !$user_include_replies, 'include_rts' => $user_include_rts, + 'tweet_mode' => 'extended', ); include "functions.php"; if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' - || $_SERVER['SERVER_PORT'] == 443) { + || $_SERVER['SERVER_PORT'] == 443) { - $protocol = 'https://'; + $protocol = 'https://'; } else { - $protocol = 'http://'; + $protocol = 'http://'; } print(''. PHP_EOL);