]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter just went to the 280 character limit.
authorMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 22:44:39 +0000 (22:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 22:44:39 +0000 (22:44 +0000)
buffer/buffer.php
twitter/twitter.php

index c9bb93e23eadd78aa84e62639d2bbd85e67d29ab..f5f88e10658f27fd0de508e30df93cac24a94f89 100644 (file)
@@ -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;
index 07ca8e0c414153aa2cc9823112c17b146a59de78..2fff1b18221f11d0b67bd05301e8977c7be0370d 100644 (file)
@@ -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"];