From 6d47fadf42b7406b4d71482a5e1a59112333f251 Mon Sep 17 00:00:00 2001 From: Jean Baptiste Favre Date: Tue, 11 Sep 2012 15:57:13 +0200 Subject: [PATCH] Fix introduced bug, trying to shorten an empty status. --- actions/apistatusesupdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php index 2e1ddc2274..c772f96afc 100644 --- a/actions/apistatusesupdate.php +++ b/actions/apistatusesupdate.php @@ -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)) {