From 68299c914b0fc0ec98e6dbb68f75f733df6dc48b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Mar 2021 09:35:43 +0300 Subject: share: move og:image back to head --- plugins/share/init.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/share') diff --git a/plugins/share/init.php b/plugins/share/init.php index 4ad788428..195f9df2a 100644 --- a/plugins/share/init.php +++ b/plugins/share/init.php @@ -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, "...")) ?>"> - - - - + + + +
-- cgit v1.2.3-54-g00ecf