diff options
-rw-r--r-- | actions/postnotice.php | 2 |
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; } |