share: move og:image back to head
This commit is contained in:
parent
718c9f07fa
commit
68299c914b
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.0 KiB |
|
@ -149,6 +149,9 @@ class Share extends Plugin {
|
||||||
|
|
||||||
$line['content'] = DiskCache::rewrite_urls($line['content']);
|
$line['content'] = DiskCache::rewrite_urls($line['content']);
|
||||||
|
|
||||||
|
if (!$og_image)
|
||||||
|
$og_image = Config::get_self_url() . "/images/favicon-512px.png";
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -180,11 +183,11 @@ class Share extends Plugin {
|
||||||
strip_tags($content_decoded)
|
strip_tags($content_decoded)
|
||||||
)
|
)
|
||||||
), 500, "...")) ?>">
|
), 500, "...")) ?>">
|
||||||
</head>
|
|
||||||
|
|
||||||
<?php if ($og_image) { ?>
|
<?php if ($og_image) { ?>
|
||||||
<meta property='og:image' content="<?= htmlspecialchars($og_image) ?>">
|
<meta property='og:image' content="<?= htmlspecialchars($og_image) ?>">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body class='flat ttrss_utility ttrss_zoom css_loading'>
|
<body class='flat ttrss_utility ttrss_zoom css_loading'>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
|
|
Loading…
Reference in New Issue