forked from GNUsocial/gnu-social
trac31 forgot about twitapi, now fixed.
darcs-hash:20081113164741-099f7-c8994bc8902df1cfc9fe62bf6d556a5c3f521b8f.gz
This commit is contained in:
parent
5fc9f11677
commit
efabf7d341
@ -112,7 +112,8 @@ class Twitapidirect_messagesAction extends TwitterapiAction {
|
|||||||
|
|
||||||
if (!$content) {
|
if (!$content) {
|
||||||
$this->client_error(_('No message text!'), $code = 406, $apidata['content-type']);
|
$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);
|
$status = common_shorten_links($status);
|
||||||
if (mb_strlen($status) > 140) {
|
if (mb_strlen($status) > 140) {
|
||||||
$this->client_error(_('That\'s too long. Max message size is 140 chars.'),
|
$this->client_error(_('That\'s too long. Max message size is 140 chars.'),
|
||||||
|
@ -252,7 +252,8 @@ class TwitapistatusesAction extends TwitterapiAction {
|
|||||||
// errror? -- Zach
|
// errror? -- Zach
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} else if (mb_strlen($status) > 140) {
|
// } else if (mb_strlen($status) > 140) {
|
||||||
|
} else {
|
||||||
|
|
||||||
$status = common_shorten_links($status);
|
$status = common_shorten_links($status);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user