shortenLinks with a capital L
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 17:12:29 +0000 (18:12 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 17:12:29 +0000 (18:12 +0100)
actions/apistatusesupdate.php

index 6b876c8f117a045b33f70d1a910443c63d5a1a91..590ba1f06e41d73e733d3ac3ec2e4b43c758b957 100644 (file)
@@ -211,7 +211,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
             $this->clientError(_('No such user.'), 404);
         }
 
-        /* Do not call shortenlinks until the whole notice has been build */
+        /* Do not call shortenLinks until the whole notice has been build */
 
         // Check for commands
 
@@ -248,13 +248,13 @@ class ApiStatusesUpdateAction extends ApiAuthAction
             try {
                 $upload = MediaFile::fromUpload('media', $this->scoped);
                 $this->status .= ' ' . $upload->shortUrl();
-                /* Do not call shortenlinks until the whole notice has been build */
+                /* Do not call shortenLinks until the whole notice has been build */
             } catch (NoUploadedMediaException $e) {
                 // There was no uploaded media for us today.
             }
 
             /* Do call shortenlinks here & check notice length since notice is about to be saved & sent */
-            $status_shortened = $this->auth_user->shortenlinks($this->status);
+            $status_shortened = $this->auth_user->shortenLinks($this->status);
 
             if (Notice::contentTooLong($status_shortened)) {
                 if ($upload instanceof MediaFile) {