]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newmessage.php
remove spurious readme from Orbited
[quix0rs-gnu-social.git] / actions / newmessage.php
index 5798715463749554d0741f393b2436d7edd324db..a0b17fc18a5ec315eac3c25b13c5c7f1c271dcb7 100644 (file)
@@ -29,7 +29,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -144,9 +144,10 @@ class NewmessageAction extends Action
         } else {
             $content_shortened = common_shorten_links($this->content);
 
-            if (mb_strlen($content_shortened) > 140) {
-                $this->showForm(_('That\'s too long. ' .
-                    'Max message size is 140 chars.'));
+            if (Message::contentTooLong($content_shortened)) {
+                $this->showForm(sprintf(_('That\'s too long. ' .
+                                          'Max message size is %d chars.'),
+                                        Message::maxContent()));
                 return;
             }
         }