]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac31 forgot about twitapi, now fixed.
authormillette <millette@controlyourself.ca>
Thu, 13 Nov 2008 16:47:41 +0000 (11:47 -0500)
committermillette <millette@controlyourself.ca>
Thu, 13 Nov 2008 16:47:41 +0000 (11:47 -0500)
darcs-hash:20081113164741-099f7-c8994bc8902df1cfc9fe62bf6d556a5c3f521b8f.gz

actions/twitapidirect_messages.php
actions/twitapistatuses.php

index 3037890ad22440a585a4643ef07def3c69449b3b..ed2d5c5d1cfb3d01081cd1d664cbeb70402479c0 100644 (file)
@@ -112,7 +112,8 @@ class Twitapidirect_messagesAction extends TwitterapiAction {
 
                if (!$content) {
                        $this->client_error(_('No message text!'), $code = 406, $apidata['content-type']);
-               } else if (mb_strlen($status) > 140) {
+//             } else if (mb_strlen($status) > 140) {
+               } else {
                        $status = common_shorten_links($status);
                        if (mb_strlen($status) > 140) {
                                $this->client_error(_('That\'s too long. Max message size is 140 chars.'),
@@ -266,4 +267,4 @@ class Twitapidirect_messagesAction extends TwitterapiAction {
                # XXX: Jabber, SMS notifications... probably queued
        }
 
-}
\ No newline at end of file
+}
index ca79feb4c6ed7b9fd43e2237f64fe64b7dfaef3a..1b095079aabf941e4274f36d398b8c7878797da7 100644 (file)
@@ -252,7 +252,8 @@ class TwitapistatusesAction extends TwitterapiAction {
                        // errror? -- Zach
                        return;
 
-               } else if (mb_strlen($status) > 140) {
+//             } else if (mb_strlen($status) > 140) {
+               } else {
                        
                        $status = common_shorten_links($status);