]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
accept 140 chars in API, too
authorEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 19:27:10 +0000 (15:27 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 19:27:10 +0000 (15:27 -0400)
darcs-hash:20080817192710-84dde-47e8da809c930c7c4528e3cb920d9a448e56d4c0.gz

actions/twitapistatuses.php

index 3f9e930737760c7a1a5b0653188345c87bcbd381..92c6fbb634a41fe3f8dc8693bf1b697133ca2393 100644 (file)
@@ -391,7 +391,7 @@ class TwitapistatusesAction extends TwitterapiAction {
                        // errror? -- Zach
                        exit();
 
-               } else if (strlen($status) > 140) {
+               } else if (mb_strlen($status) > 140) {
 
                        // XXX: Twitter truncates anything over 140, flags the status
                    // as "truncated."  Sending this error may screw up some clients