From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 17:12:29 +0000 (+0100) Subject: shortenLinks with a capital L X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65055044118978383006d52675a230aa09bb3220;p=quix0rs-gnu-social.git shortenLinks with a capital L --- diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php index 6b876c8f11..590ba1f06e 100644 --- a/actions/apistatusesupdate.php +++ b/actions/apistatusesupdate.php @@ -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) {