From 65055044118978383006d52675a230aa09bb3220 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 18:12:29 +0100 Subject: [PATCH] shortenLinks with a capital L --- actions/apistatusesupdate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5