Merge pull request #5736 from smueller18/patch-2
do not show hyphen in og:title if slogan does not exist
This commit is contained in:
commit
58f72309cc
|
@ -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']]);
|
||||
|
|
Loading…
Reference in New Issue