[LinkPreview] Fix 'no candidate for action "embedproxy"'

This commit is contained in:
Miguel Dantas 2019-08-14 14:25:04 +01:00 committed by Diogo Cordeiro
parent 357296baeb
commit 0bb35d7e7f

View File

@ -56,7 +56,7 @@ class LinkPreviewPlugin extends Plugin
if ($user && common_config('attachments', 'process_links')) {
$action->script($this->path('js/linkpreview.js'));
$data = json_encode(array(
'api' => common_local_url('embedproxy'),
'api' => common_local_url('oembedproxy'),
'width' => common_config('attachments', 'thumbwidth'),
'height' => common_config('attachments', 'thumbheight'),
));