summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-08-07 12:14:30 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-08-07 12:14:30 +0200
commit8b2fe69bb20b07a02311d49e96fd2ddb48961fef (patch)
tree51bc7cf3697d8ea56ed6d52b4319af5e5db425ed /apps
parentd2365afad6c10a2b365b13296065e99bf13d704f (diff)
parentdc15633111473dcd971bde8ad6b712cb0d4ae108 (diff)
downloadnextcloud-server-8b2fe69bb20b07a02311d49e96fd2ddb48961fef.tar.gz
nextcloud-server-8b2fe69bb20b07a02311d49e96fd2ddb48961fef.zip
Merge pull request #10218 from owncloud/pzy-master
Adding link tag to enable facebook timeline previews
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/templates/public.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 8406b79cf1a..42103296d87 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -1,4 +1,9 @@
<?php /** @var $l OC_L10N */ ?>
+<?php $thumbSize=1024; ?>
+<?php if ( \OC\Preview::isMimeSupported($_['mimetype'])): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?>
+ <link rel="image_src" href="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $thumbSize, 'y' => $thumbSize, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" />
+<?php endif; ?>
+
<div id="notification-container">
<div id="notification" style="display: none;"></div>
</div>