aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-10-25 18:34:23 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-10-25 18:34:23 +0200
commit4cb4d03184634c093575a370b2b90526e3c6030b (patch)
treebdfc0a72ff59691d6d35d8a83f1a6e160663ad17 /apps/files_sharing
parent9f5e1648c106893425790385b8741499ae08f2b6 (diff)
parent30460b52dfef0e216cfb86a0e1e8069de6436eb6 (diff)
downloadnextcloud-server-4cb4d03184634c093575a370b2b90526e3c6030b.tar.gz
nextcloud-server-4cb4d03184634c093575a370b2b90526e3c6030b.zip
Merge branch 'mastix-master'
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Controller/ShareController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php
index a7cf1a78971..ed9ad33417a 100644
--- a/apps/files_sharing/lib/Controller/ShareController.php
+++ b/apps/files_sharing/lib/Controller/ShareController.php
@@ -406,8 +406,8 @@ class ShareController extends Controller {
}
// OpenGraph Support: http://ogp.me/
- \OCP\Util::addHeader('meta', ['property' => "og:title", 'content' => $this->defaults->getName() . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : '')]);
- \OCP\Util::addHeader('meta', ['property' => "og:description", 'content' => $this->l10n->t('%s is publicly shared', [$shareTmpl['filename']])]);
+ \OCP\Util::addHeader('meta', ['property' => "og:title", 'content' => $shareTmpl['filename']]);
+ \OCP\Util::addHeader('meta', ['property' => "og:description", 'content' => $this->defaults->getName() . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : '')]);
\OCP\Util::addHeader('meta', ['property' => "og:site_name", 'content' => $this->defaults->getName()]);
\OCP\Util::addHeader('meta', ['property' => "og:url", 'content' => $shareTmpl['shareUrl']]);
\OCP\Util::addHeader('meta', ['property' => "og:type", 'content' => "object"]);