summaryrefslogtreecommitdiff
path: root/actions/apidirectmessagenew.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/apidirectmessagenew.php')
-rw-r--r--actions/apidirectmessagenew.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/apidirectmessagenew.php b/actions/apidirectmessagenew.php
index b335a9c93..978c75353 100644
--- a/actions/apidirectmessagenew.php
+++ b/actions/apidirectmessagenew.php
@@ -119,7 +119,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction
$this->format
);
} else {
- $content_shortened = common_shorten_links($this->content);
+ $content_shortened = $this->auth_user->shortenLinks($this->content);
if (Message::contentTooLong($content_shortened)) {
$this->clientError(
// TRANS: Client error displayed when message content is too long.