X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnewnotice.php;h=faafd9551d97511709f82e716ceb7c223dfc8f79;hb=e475bdfe772607a21c689f51553f9c40e5c7338f;hp=0d4dcfccd5b9a9f4a13ae0f3434041b7b8a6fff0;hpb=2b0d1d9fc4cc2f8d297a14ed0708bcb64a1f070d;p=quix0rs-gnu-social.git diff --git a/actions/newnotice.php b/actions/newnotice.php index 0d4dcfccd5..faafd9551d 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -154,7 +154,7 @@ class NewnoticeAction extends Action return; } - $content_shortened = common_shorten_links($content); + $content_shortened = $user->shortenLinks($content); if (Notice::contentTooLong($content_shortened)) { // TRANS: Client error displayed when the parameter "status" is missing. // TRANS: %d is the maximum number of character for a notice.