X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmailhandler.php;h=459657ffe0d3f01bec851789e017bc532a63eebc;hb=dc424ab63a91bf4c29198452d54543b8737b65ac;hp=e9ba418399dcad6709fbb2530c6360e609f03ffc;hpb=6eae5d6a7e2265de4065b764c28cef3ee009bcda;p=quix0rs-gnu-social.git diff --git a/lib/mailhandler.php b/lib/mailhandler.php index e9ba418399..459657ffe0 100644 --- a/lib/mailhandler.php +++ b/lib/mailhandler.php @@ -55,10 +55,11 @@ class MailHandler return true; } $msg = $this->cleanup_msg($msg); - $msg = common_shorten_links($msg); + $msg = $user->shortenLinks($msg); if (Notice::contentTooLong($msg)) { - $this->error($from, sprintf(_('That\'s too long. '. - 'Max notice size is %d chars.'), + $this->error($from, sprintf(_('That\'s too long. Maximum notice size is %d character.', + 'That\'s too long. Maximum notice size is %d characters.', + Notice::maxContent()), Notice::maxContent())); }