]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Notice update with media attachment may fail through API when status text + attachmen...
authorJean Baptiste Favre <statusnet@jbfavre.org>
Thu, 6 Sep 2012 15:11:33 +0000 (11:11 -0400)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Sat, 15 Jun 2013 17:04:31 +0000 (19:04 +0200)
actions/apistatusesupdate.php

index b0f35271607e261cc67f56406fba4f9444d26a90..0385b019612380e66c04f3064a05b752757782d2 100644 (file)
@@ -300,6 +300,9 @@ class ApiStatusesUpdateAction extends ApiAuthAction
 
             if (isset($upload)) {
                 $status_shortened .= ' ' . $upload->shortUrl();
+//JBTEST
+                $status_shortened = $this->auth_user->shortenlinks($status_shortened);
+//JBTEST
 
                 if (Notice::contentTooLong($status_shortened)) {
                     $upload->delete();