summaryrefslogtreecommitdiff
path: root/actions/newmessage.php
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-13 10:32:16 -0500
committermillette <millette@controlyourself.ca>2008-11-13 10:32:16 -0500
commit5fc9f116776164da15cf6e927849e68f6515cdb9 (patch)
tree2dda4ffc8bed10a21e57ddcc7e1651a6f10f7b9e /actions/newmessage.php
parent14f69f8d2efee5a927821c9a3c134cd1a682c7fe (diff)
trac31 shorten all URLs even if notice is already <
darcs-hash:20081113153216-099f7-81c4aba01babca97edeaf55b230dee300dbeb57a.gz
Diffstat (limited to 'actions/newmessage.php')
-rw-r--r--actions/newmessage.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/newmessage.php b/actions/newmessage.php
index 2455f42e9..d4e289465 100644
--- a/actions/newmessage.php
+++ b/actions/newmessage.php
@@ -34,7 +34,6 @@ class NewmessageAction extends Action {
}
function save_new_message() {
-
$user = common_current_user();
assert($user); # XXX: maybe an error instead...
@@ -52,8 +51,8 @@ class NewmessageAction extends Action {
if (!$content) {
$this->show_form(_('No content!'));
return;
- } else if (mb_strlen($content) > 140) {
-
+// } else if (mb_strlen($content) > 140) {
+ } else {
$content = common_shorten_links($content);
if (mb_strlen($content) > 140) {