forked from GNUsocial/gnu-social
postnotice for OMB correctly checks max notice size
This commit is contained in:
parent
3eeb9deffb
commit
3565383f77
@ -66,7 +66,7 @@ class PostnoticeAction extends Action
|
|||||||
function checkNotice()
|
function checkNotice()
|
||||||
{
|
{
|
||||||
$content = common_shorten_links($_POST['omb_notice_content']);
|
$content = common_shorten_links($_POST['omb_notice_content']);
|
||||||
if (mb_strlen($content) > 140) {
|
if (Notice::contentTooLong($content)) {
|
||||||
$this->clientError(_('Invalid notice content'), 400);
|
$this->clientError(_('Invalid notice content'), 400);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user