diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-18 09:04:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 09:04:47 +0200 |
commit | 58f72309cc8e0b9e6b813aed5d405a8a9f48213e (patch) | |
tree | 04cd5aacb8c10418a7f584058fa20952571d7fd0 /apps/files_sharing | |
parent | 4b1f258198e54ffb24215ef9e6357615cfda0f0b (diff) | |
parent | 7cf3dc4e2961f8ec63ade5bd5ee57808bad1e7b6 (diff) | |
download | nextcloud-server-58f72309cc8e0b9e6b813aed5d405a8a9f48213e.tar.gz nextcloud-server-58f72309cc8e0b9e6b813aed5d405a8a9f48213e.zip |
Merge pull request #5736 from smueller18/patch-2
do not show hyphen in og:title if slogan does not exist
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 759d5ee4163..df6f379d119 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -401,7 +401,7 @@ class ShareController extends Controller { } // OpenGraph Support: http://ogp.me/ - \OCP\Util::addHeader('meta', ['property' => "og:title", 'content' => $this->defaults->getName() . ' - ' . $this->defaults->getSlogan()]); + \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:site_name", 'content' => $this->defaults->getName()]); \OCP\Util::addHeader('meta', ['property' => "og:url", 'content' => $shareTmpl['shareUrl']]); |