summaryrefslogtreecommitdiff
path: root/actions/postnotice.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/postnotice.php')
-rw-r--r--actions/postnotice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/postnotice.php b/actions/postnotice.php
index 74be47119..3d2c4d5b4 100644
--- a/actions/postnotice.php
+++ b/actions/postnotice.php
@@ -66,7 +66,7 @@ class PostnoticeAction extends Action
function checkNotice()
{
$content = common_shorten_links($_POST['omb_notice_content']);
- if (mb_strlen($content) > 140) {
+ if (Notice::contentTooLong($content)) {
$this->clientError(_('Invalid notice content'), 400);
return false;
}