]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
postnotice for OMB correctly checks max notice size
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 12:14:37 +0000 (08:14 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 12:14:37 +0000 (08:14 -0400)
actions/postnotice.php

index 74be47119a4d330204f99207f891594e1d254221..3d2c4d5b4227163f82b25afca2b3169daccd4440 100644 (file)
@@ -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;
         }