Fix introduced bug, trying to shorten an empty status.

This commit is contained in:
Jean Baptiste Favre 2012-09-11 15:57:13 +02:00
parent 54374365e9
commit 6d47fadf42
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
}
/* Do call shortenlinks here & check notice length since notice is about to be saved & sent */
$status_shortened = $this->auth_user->shortenlinks($status_shortened);
$status_shortened = $this->auth_user->shortenlinks($this->status);
if (Notice::contentTooLong($status_shortened)) {
if (isset($upload)) {