From 2effabed63e9c762cb72e16dfd02bbb00319201a Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Nov 2017 22:44:39 +0000 Subject: [PATCH] Twitter just went to the 280 character limit. --- buffer/buffer.php | 2 +- twitter/twitter.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/buffer/buffer.php b/buffer/buffer.php index c9bb93e2..f5f88e10 100644 --- a/buffer/buffer.php +++ b/buffer/buffer.php @@ -295,7 +295,7 @@ function buffer_send(&$a,&$b) { break; case 'twitter': $send = ($b["extid"] != NETWORK_TWITTER); - $limit = 140; + $limit = 280; $markup = false; $includedlinks = true; $htmlmode = 8; diff --git a/twitter/twitter.php b/twitter/twitter.php index 07ca8e0c..2fff1b18 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -232,7 +232,7 @@ function twitter_settings(&$a,&$s) { /*** * 1) Check that we have global consumer key & secret * 2) If no OAuthtoken & stuff is present, generate button to get some - * 3) Checkbox for "Send public notices (140 chars only) + * 3) Checkbox for "Send public notices (280 chars only) */ $ckey = Config::get('twitter', 'consumerkey' ); $csecret = Config::get('twitter', 'consumersecret' ); @@ -491,7 +491,7 @@ function twitter_post_hook(&$a,&$b) { require_once('include/bbcode.php'); $tweet = new TwitterOAuth($ckey,$csecret,$otoken,$osecret); - $max_char = 140; + $max_char = 280; require_once("include/plaintext.php"); $msgarr = plaintext($a, $b, $max_char, true, 8); $msg = $msgarr["text"]; @@ -729,7 +729,7 @@ function twitter_prepare_body(&$a,&$b) { return; if ($b["preview"]) { - $max_char = 140; + $max_char = 280; require_once("include/plaintext.php"); $item = $b["item"]; $item["plink"] = $a->get_baseurl()."/display/".$a->user["nickname"]."/".$item["parent"]; -- 2.39.5