summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-07-22 16:13:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-21 21:42:40 +0200
commite0d919bbfcc3de5839a5134f301b879a949cf6c3 (patch)
tree2abc23f73c01e246a9815034ef7aa5b310247245 /apps/files_sharing/templates
parente8adf53f7704c2805b0637eaf571d8cc59054c3e (diff)
downloadnextcloud-server-e0d919bbfcc3de5839a5134f301b879a949cf6c3.tar.gz
nextcloud-server-e0d919bbfcc3de5839a5134f301b879a949cf6c3.zip
Adding Open Graph Support for public shares http://ogp.me/
In case no preview is available we display the ownCloud logo Fix unit test
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index bdedb04d244..80c7d4d7460 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -4,7 +4,7 @@
?>
<?php if ($_['previewSupported']): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?>
- <link rel="image_src" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute( 'core_ajax_public_preview', array('x' => $_['previewMaxX'], 'y' => $_['previewMaxY'], 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" />
+ <link rel="image_src" href="<?php p($_['previewImage']); ?>" />
<?php endif; ?>
<div id="notification-container">