+
+ // experimental
+ // Sometims Twitter seems to think that posts are too long - although they aren't
+ // Test 1:
+ // Shorten the urls
+ // Test 2:
+ // Reduce the maximum length
+ if ($intelligent_shortening) {
+ $msgarr = twitter_shortenmsg($b, true);
+ $msg = $msgarr["msg"];
+ $image = $msgarr["image"];
+ $result = $tweet->post('statuses/update', array('status' => $msg));
+ logger('twitter_post send, result: ' . print_r($result, true), LOGGER_DEBUG);
+ }
+
+ }