From 19fef1874770f5737719917e797a01d2e9bd230e Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 4 Jun 2024 22:05:22 +0200 Subject: [PATCH] Fix code errors --- include/functions_trackbacks.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/functions_trackbacks.inc.php b/include/functions_trackbacks.inc.php index 154775aba..6972de4cb 100644 --- a/include/functions_trackbacks.inc.php +++ b/include/functions_trackbacks.inc.php @@ -558,17 +558,17 @@ function getPingbackParam($paramName, $data) { * @return array Either contains name, title and excerpt or stays empty */ function fetchWebmentionData($url, $target) { - $sourceHTML = serendipity_request_url($url) + $sourceHTML = serendipity_request_url($url); $microdata = Mf2\parse($sourceHTML, $url); if ($microdata) { - $title = '' - $excerpt = '' - $name = '' + $title = ''; + $excerpt = ''; + $name = ''; // TODO: Check the microdata entry for a title (of the post), an excerpt and a name // (of the author) if ($title != '' && $excerpt != '' && $name != '') { - return ['title' => $title, 'name' => $name, 'excerpt => '$excerpt]; + return ['title' => $title, 'name' => $name, 'excerpt' => $excerpt]; } } return [];