From 5fc9f116776164da15cf6e927849e68f6515cdb9 Mon Sep 17 00:00:00 2001 From: millette Date: Thu, 13 Nov 2008 10:32:16 -0500 Subject: trac31 shorten all URLs even if notice is already < darcs-hash:20081113153216-099f7-81c4aba01babca97edeaf55b230dee300dbeb57a.gz --- actions/postnotice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions/postnotice.php') diff --git a/actions/postnotice.php b/actions/postnotice.php index b4a272e61..243aa3163 100644 --- a/actions/postnotice.php +++ b/actions/postnotice.php @@ -58,13 +58,13 @@ class PostnoticeAction extends Action { return false; } $content = $req->get_parameter('omb_notice_content'); - if (!$content || strlen($content) > 140) { +// if (!$content || strlen($content) > 140) { $content = common_shorten_links($content); if (mb_strlen($content) > 140) { common_user_error(_('Invalid notice content'), 400); return false; } - } +// } $notice_uri = $req->get_parameter('omb_notice'); if (!Validate::uri($notice_uri) && !common_valid_tag($notice_uri)) { -- cgit v1.2.3-54-g00ecf