]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newmessage.php
Profile block base style
[quix0rs-gnu-social.git] / actions / newmessage.php
index d4e289465aa066b50a871e23e4170d1023492c53..67695210ec21ebf5db6add7234fbd1f0d2ee1f33 100644 (file)
@@ -51,13 +51,12 @@ class NewmessageAction extends Action {
                if (!$content) {
                        $this->show_form(_('No content!'));
                        return;
-//             } else if (mb_strlen($content) > 140) {
                } else {
-                       $content = common_shorten_links($content);
+                       $content_shortened = common_shorten_links($content);
 
-                       if (mb_strlen($content) > 140) {
-                               common_debug("Content = '$content'", __FILE__);
-                               common_debug("mb_strlen(\$content) = " . mb_strlen($content), __FILE__);
+                       if (mb_strlen($content_shortened) > 140) {
+                               common_debug("Content = '$content_shortened'", __FILE__);
+                               common_debug("mb_strlen(\$content) = " . mb_strlen($content_shortened), __FILE__);
                                $this->show_form(_('That\'s too long. Max message size is 140 chars.'));
                                return;
                        }