Browse Source

Support legacy urls for webmentions

dev
Yarmo Mackenbach 3 months ago
parent
commit
ee77a866a6
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      functions.php

+ 5
- 1
functions.php View File

@ -223,7 +223,11 @@ function scandirRec($path, $category, $params) {
return;
}
if (isset($params['slug'])) {
$item["webmentions"] = getWebmentions($item["url"]);
$item["webmentions"] = array_merge(
getWebmentions($item["url"]),
getWebmentions("https://yarmo.eu/blog/".$meta["slug"]),
getWebmentions("https://yarmo.eu/notes/".$meta["slug"])
);
$item["hasWebmentions"] = count($item["webmentions"]) > 0;
}

Loading…
Cancel
Save