Skip to content

Commit

Permalink
Fix code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed Jun 4, 2024
1 parent efd7f79 commit 19fef18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/functions_trackbacks.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 19fef18

Please sign in to comment.