Skip to content
Snippets Groups Projects
Commit 68299c91 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

share: move og:image back to head

parent 718c9f07
No related branches found
No related tags found
No related merge requests found
images/favicon-512px.png

40.3 KiB

images/logo_small.png

4.04 KiB

......@@ -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'>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment