share: move og:image back to head

This commit is contained in:
Andrew Dolgov 2021-03-21 09:35:43 +03:00
parent 718c9f07fa
commit 68299c914b
3 changed files with 7 additions and 4 deletions

BIN
images/favicon-512px.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -149,6 +149,9 @@ class Share extends Plugin {
$line['content'] = DiskCache::rewrite_urls($line['content']);
if (!$og_image)
$og_image = Config::get_self_url() . "/images/favicon-512px.png";
ob_start();
?>
@ -180,11 +183,11 @@ class Share extends Plugin {
strip_tags($content_decoded)
)
), 500, "...")) ?>">
</head>
<?php if ($og_image) { ?>
<meta property='og:image' content="<?= htmlspecialchars($og_image) ?>">
<?php } ?>
<?php if ($og_image) { ?>
<meta property='og:image' content="<?= htmlspecialchars($og_image) ?>">
<?php } ?>
</head>
<body class='flat ttrss_utility ttrss_zoom css_loading'>
<div class='container'>