From 983655165e1e95b38a9ca895dfe9d819d460fcb0 Mon Sep 17 00:00:00 2001 From: linkai Date: Wed, 12 May 2021 09:46:52 +0800 Subject: [PATCH] Fix:Plugins-share:init.php - site_url is NULL when share article by URL from archived --- plugins/share/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/share/init.php b/plugins/share/init.php index 76c539f53..359d86802 100644 --- a/plugins/share/init.php +++ b/plugins/share/init.php @@ -142,7 +142,7 @@ class Share extends Plugin { $line); $enclosures = Article::_get_enclosures($line["id"]); - list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $line["site_url"] ?: "", $line); + list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $line["site_url"] ?? "", $line); $content_decoded = html_entity_decode($line["title"], ENT_NOQUOTES | ENT_HTML401); $parsed_updated = TimeHelper::make_local_datetime($line["updated"], true, $owner_uid, true);