This commit is contained in:
Friendika 2011-09-26 03:17:33 -07:00
parent 17fa04f25a
commit 2fafea11fa
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ function twitter_post_hook(&$a,&$b) {
$max_char = 140; // max. length for a tweet $max_char = 140; // max. length for a tweet
$msg = strip_tags(bbcode($b['body'])); $msg = strip_tags(bbcode($b['body']));
if ( strlen($msg) > $max_char) { if ( strlen($msg) > $max_char) {
logger('Twitter: have to shorten the message to fit 140 chars', LOGGER_DEBUG) logger('Twitter: have to shorten the message to fit 140 chars', LOGGER_DEBUG);
$shortlink = ""; $shortlink = "";
require_once('library/slinky.php'); require_once('library/slinky.php');
// post url = base url + /display/ + owner + post id // post url = base url + /display/ + owner + post id