self-upgrade

This commit is contained in:
2025-02-19 16:41:04 +01:00
parent 5e30403988
commit e72000d2e8
22 changed files with 464 additions and 250 deletions

View File

@@ -613,7 +613,15 @@ class Page implements PageInterface
// Set Last-Modified header
if ($this->lastModified()) {
$last_modified_date = gmdate('D, d M Y H:i:s', $this->modified()) . ' GMT';
$last_modified = $this->modified();
foreach ($this->children()->modular() as $cpage) {
$modular_mtime = $cpage->modified();
if ($modular_mtime > $last_modified) {
$last_modified = $modular_mtime;
}
}
$last_modified_date = gmdate('D, d M Y H:i:s', $last_modified) . ' GMT';
$headers['Last-Modified'] = $last_modified_date;
}
@@ -1774,7 +1782,7 @@ class Page implements PageInterface
'content' => $escape ? htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8') : $value
];
if ($hasSeparator && !Utils::startsWith($key, ['twitter', 'flattr'])) {
if ($hasSeparator && !Utils::startsWith($key, ['twitter', 'flattr','fediverse'])) {
$entry['property'] = $key;
} else {
$entry['name'] = $key;