summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-13 11:47:41 -0500
committermillette <millette@controlyourself.ca>2008-11-13 11:47:41 -0500
commitefabf7d34107fc494ef1009672ef9983f98821ee (patch)
tree3f35d8bf3c0510c9d70a2e14ecee2cc69dde66a7 /actions
parent5fc9f116776164da15cf6e927849e68f6515cdb9 (diff)
trac31 forgot about twitapi, now fixed.
darcs-hash:20081113164741-099f7-c8994bc8902df1cfc9fe62bf6d556a5c3f521b8f.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapidirect_messages.php5
-rw-r--r--actions/twitapistatuses.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/actions/twitapidirect_messages.php b/actions/twitapidirect_messages.php
index 3037890ad..ed2d5c5d1 100644
--- a/actions/twitapidirect_messages.php
+++ b/actions/twitapidirect_messages.php
@@ -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
+}
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index ca79feb4c..1b095079a 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -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);