diff options
author | Stephan Müller <mail@stephanmueller.eu> | 2017-07-14 15:26:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 15:26:44 +0200 |
commit | 7cf3dc4e2961f8ec63ade5bd5ee57808bad1e7b6 (patch) | |
tree | c333fdb0edb87740852baf182ad61b13d82fd82d /apps | |
parent | a79447c6fdad379a1d254e2e379ac45b6acd0345 (diff) | |
download | nextcloud-server-7cf3dc4e2961f8ec63ade5bd5ee57808bad1e7b6.tar.gz nextcloud-server-7cf3dc4e2961f8ec63ade5bd5ee57808bad1e7b6.zip |
do not show hyphen in og:title if slogan does not exist
Diffstat (limited to 'apps')
-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']]); |