From 814695b3ccdecc0fb2946fe420495ca431e38c6d Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 14 Oct 2011 14:41:06 +0200 Subject: [PATCH] lowered tweet length to 138 after reading Bug 3461 on StatusNet that confimed my assumptions that Twitter has problems with Tweets being exactly 140char long http://is.gd/PP443k --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 74d88168..cf2c7ea1 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -261,7 +261,7 @@ function twitter_post_hook(&$a,&$b) { require_once('library/twitteroauth.php'); require_once('include/bbcode.php'); $tweet = new TwitterOAuth($ckey,$csecret,$otoken,$osecret); - $max_char = 140; // max. length for a tweet + $max_char = 138; // max. length for a tweet $msg = strip_tags(bbcode($b['body'])); if ( strlen($msg) > $max_char) { logger('Twitter: have to shorten the message to fit 140 chars', LOGGER_DEBUG);