From ee858bc8809f846860e4372444b172d8737abc75 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Aug 2008 15:27:10 -0400 Subject: [PATCH] accept 140 chars in API, too darcs-hash:20080817192710-84dde-47e8da809c930c7c4528e3cb920d9a448e56d4c0.gz --- actions/twitapistatuses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 3f9e930737..92c6fbb634 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -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 -- 2.39.5