From: Jean Baptiste Favre Date: Tue, 11 Sep 2012 13:57:13 +0000 (+0200) Subject: Fix introduced bug, trying to shorten an empty status. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d47fadf42b7406b4d71482a5e1a59112333f251;p=quix0rs-gnu-social.git Fix introduced bug, trying to shorten an empty status. --- 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)) {