Only shorten when notice length exceeds max length
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user