]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ClientSideShorten/ClientSideShortenPlugin.php
Only shorten when notice length exceeds max length
[quix0rs-gnu-social.git] / plugins / ClientSideShorten / ClientSideShortenPlugin.php
index 21763d5b7eec8a1513008296efc109f8e495ff9a..ba1f7d3a7c3338ca47f3bd4ff1d9b00f428233cd 100644 (file)
@@ -51,6 +51,7 @@ class ClientSideShortenPlugin extends Plugin
     }
 
     function onEndShowScripts($action){
+        $action->inlineScript('var Notice_maxContent = ' . Notice::maxContent());
         if (common_logged_in()) {
             $action->script('plugins/ClientSideShorten/shorten.js');
         }