forked from GNUsocial/gnu-social
Preparing plugins for no-minify-in-core-policy
also making the file structure better with js and css folders for Realtime and LinkPreview
This commit is contained in:
@@ -52,12 +52,7 @@ class LinkPreviewPlugin extends Plugin
|
||||
{
|
||||
$user = common_current_user();
|
||||
if ($user && common_config('attachments', 'process_links')) {
|
||||
if (common_config('site', 'minify')) {
|
||||
$js = 'linkpreview.min.js';
|
||||
} else {
|
||||
$js = 'linkpreview.js';
|
||||
}
|
||||
$action->script($this->path($js));
|
||||
$action->script($this->path('js/linkpreview.js'));
|
||||
$data = json_encode(array(
|
||||
'api' => common_local_url('oembedproxy'),
|
||||
'width' => common_config('attachments', 'thumbwidth'),
|
||||
|
||||
Reference in New Issue
Block a user