X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLinkPreview%2FLinkPreviewPlugin.php;h=09b3a2af645d05900ba4cded2ac8255827c1cd1a;hb=9d42137024027eeded76016d4708439395983870;hp=8bc726413d42d39e8f30faa6e6870d9615f286c6;hpb=91485718c4a07e217f41d395d7e7cf057875e751;p=quix0rs-gnu-social.git diff --git a/plugins/LinkPreview/LinkPreviewPlugin.php b/plugins/LinkPreview/LinkPreviewPlugin.php index 8bc726413d..09b3a2af64 100644 --- a/plugins/LinkPreview/LinkPreviewPlugin.php +++ b/plugins/LinkPreview/LinkPreviewPlugin.php @@ -36,7 +36,8 @@ class LinkPreviewPlugin extends Plugin 'author' => 'Brion Vibber', 'homepage' => 'http://status.net/wiki/Plugin:LinkPreview', 'rawdescription' => - _m('UI extensions previewing thumbnails from links.')); + // TRANS: Plugin description. + _m('UI extension for previewing thumbnails from links.')); return true; } @@ -51,7 +52,12 @@ class LinkPreviewPlugin extends Plugin { $user = common_current_user(); if ($user && common_config('attachments', 'process_links')) { - $action->script($this->path('linkpreview.min.js')); + if (common_config('site', 'minify')) { + $js = 'linkpreview.min.js'; + } else { + $js = 'linkpreview.js'; + } + $action->script($this->path($js)); $data = json_encode(array( 'api' => common_local_url('oembedproxy'), 'width' => common_config('attachments', 'thumbwidth'),