]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix image_src link 2378/head
authorLukas Reschke <lukas@statuscode.ch>
Mon, 28 Nov 2016 15:16:01 +0000 (16:16 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 28 Nov 2016 15:20:57 +0000 (16:20 +0100)
The link in the image_src link (used for previews on Social Media such as Facebook) was still using the old route. This changes it to use the new route.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/files_sharing/lib/Controller/ShareController.php

index c02f0396868181a5a448929868d3a689fe21cf20..3b86f7dc23b1ed2e8753d881e4614dbb2e740e65 100644 (file)
@@ -370,7 +370,7 @@ class ShareController extends Controller {
                $shareTmpl['previewMaxY'] = $this->config->getSystemValue('preview_max_y', 1024);
                $shareTmpl['disclaimer'] = $this->config->getAppValue('core', 'shareapi_public_link_disclaimertext', null);
                if ($shareTmpl['previewSupported']) {
-                       $shareTmpl['previewImage'] = $this->urlGenerator->linkToRouteAbsolute( 'core_ajax_public_preview',
+                       $shareTmpl['previewImage'] = $this->urlGenerator->linkToRouteAbsolute( 'files_sharing.PublicPreview.getPreview',
                                ['x' => 200, 'y' => 200, 'file' => $shareTmpl['directory_path'], 't' => $shareTmpl['dirToken']]);
                } else {
                        $shareTmpl['previewImage'] = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'favicon-fb.png'));