https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d33565
)
lowered tweet length to 138 after reading Bug 3461 on StatusNet that confimed my...
author
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Fri, 14 Oct 2011 12:41:06 +0000
(14:41 +0200)
committer
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Fri, 14 Oct 2011 12:41:06 +0000
(14:41 +0200)
twitter/twitter.php
patch
|
blob
|
history
diff --git
a/twitter/twitter.php
b/twitter/twitter.php
index
74d8816
..
cf2c7ea
100644
(file)
--- 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 = 1
40
; // max. length for a tweet
+ $max_char = 1
38
; // 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);