]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix introduced bug, trying to shorten an empty status.
authorJean Baptiste Favre <statusnet@jbfavre.org>
Tue, 11 Sep 2012 13:57:13 +0000 (15:57 +0200)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Sat, 15 Jun 2013 17:07:43 +0000 (19:07 +0200)
actions/apistatusesupdate.php

index 2e1ddc22745c7a19fc08ea480dcdf3c163afb844..c772f96afcb089ffb0bd913b72b82b4293e2a457 100644 (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)) {