From 4a2622bf18d3df03b85896579052dcc160b6660c Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Thu, 13 Aug 2020 11:35:04 +0200
Subject: [PATCH 1/8] Extended tweet mode
Fix, Add extended tweet mode https://developer.twitter.com/en/docs/twitter-api/v1/tweet-updates
---
home.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/home.php b/home.php
index 0342926..a1f080c 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";
From d17864045cff93403913efa1ff0b0a8bac8919cd Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Thu, 13 Aug 2020 11:37:39 +0200
Subject: [PATCH 2/8] Update list.php
Extended tweet mode
---
list.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/list.php b/list.php
index 69ffd8b..e004b40 100644
--- a/list.php
+++ b/list.php
@@ -8,8 +8,9 @@
'slug' => $list,
'count' => $count,
'include_rts' => $list_include_rts,
- 'include_entities' => 'true',
- 'trim_user' => 'false'
+ 'include_entities' => 'true',
+ 'trim_user' => 'false',
+ 'tweet_mode' => 'extended'
);
include "functions.php";
From 810e54e377d0e29cff47c5ab8b5280d1c9071562 Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Thu, 13 Aug 2020 11:38:53 +0200
Subject: [PATCH 3/8] Update search.php
Extended tweet mode
---
search.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/search.php b/search.php
index 5ca3cb6..521f3b2 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";
From 3261928ff69710718fa5c3a1f6dbddd176c742ac Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Thu, 13 Aug 2020 11:40:33 +0200
Subject: [PATCH 4/8] Update user.php
Extended tweet mode
---
user.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/user.php b/user.php
index 0adb68c..2e19c9c 100644
--- a/user.php
+++ b/user.php
@@ -4,11 +4,12 @@
$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";
From 703af4a3f58005afb1da8eefafcf4fb128db9ddc Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Thu, 13 Aug 2020 11:41:51 +0200
Subject: [PATCH 5/8] Update feed.php
Extended Tweet mode, `full_text` replaces `text` https://developer.twitter.com/en/docs/twitter-api/v1/tweet-updates
---
feed.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
From 2cf70061f890fe1d1439b149070fa3af919250fa Mon Sep 17 00:00:00 2001
From: Fabian Henze <1144183+flyser@users.noreply.github.com>
Date: Sun, 6 Sep 2020 17:43:09 +0200
Subject: [PATCH 6/8] Fix home.php and add trailing commas
---
home.php | 2 +-
list.php | 2 +-
search.php | 2 +-
user.php | 12 ++++++------
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/home.php b/home.php
index a1f080c..b4a97d5 100644
--- a/home.php
+++ b/home.php
@@ -9,7 +9,7 @@
'exclude_replies' => !$home_include_replies,
'include_entities' => 'true',
'include_rts' => $home_include_rts,
- 'tweet_mode'='extended'
+ 'tweet_mode' => 'extended',
);
include "functions.php";
diff --git a/list.php b/list.php
index e004b40..62bdde7 100644
--- a/list.php
+++ b/list.php
@@ -10,7 +10,7 @@
'include_rts' => $list_include_rts,
'include_entities' => 'true',
'trim_user' => 'false',
- 'tweet_mode' => 'extended'
+ 'tweet_mode' => 'extended',
);
include "functions.php";
diff --git a/search.php b/search.php
index 521f3b2..8f10a9e 100644
--- a/search.php
+++ b/search.php
@@ -10,7 +10,7 @@
'count' => $count,
'include_entities' => 'true',
'result_type' => $search_result_type,
- 'tweet_mode' => 'extended'
+ 'tweet_mode' => 'extended',
);
include "functions.php";
diff --git a/user.php b/user.php
index 2e19c9c..edab3d5 100644
--- a/user.php
+++ b/user.php
@@ -4,12 +4,12 @@
$path = '/1.1/statuses/user_timeline.json'; // api call path
$query = array( // query parameters
- 'screen_name' => $screen_name,
- 'count' => $count,
- 'trim_user' => 'false',
- 'exclude_replies' => !$user_include_replies,
- 'include_rts' => $user_include_rts,
- 'tweet_mode' => 'extended'
+ '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";
From ddb18c49db4554b7f4de311f238a630311147156 Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Sun, 6 Sep 2020 21:18:57 +0200
Subject: [PATCH 7/8] Update user.php
replacing spaces with tabs
---
user.php | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/user.php b/user.php
index edab3d5..db2a0fd 100644
--- a/user.php
+++ b/user.php
@@ -4,22 +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',
- 'exclude_replies' => !$user_include_replies,
- 'include_rts' => $user_include_rts,
- 'tweet_mode' => 'extended',
+ '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);
From a9c4e5fdb558093302eeab8919525b8fc1dd33ac Mon Sep 17 00:00:00 2001
From: Ian Channing
Date: Sun, 6 Sep 2020 21:20:18 +0200
Subject: [PATCH 8/8] Update list.php
replacing spaces with tabs
---
list.php | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/list.php b/list.php
index 62bdde7..01df68e 100644
--- a/list.php
+++ b/list.php
@@ -4,23 +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,
- 'include_entities' => 'true',
- 'trim_user' => 'false',
- 'tweet_mode' => 'extended',
+ 'owner_screen_name' => $owner,
+ 'slug' => $list,
+ 'count' => $count,
+ 'include_rts' => $list_include_rts,
+ 'include_entities' => 'true',
+ '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);