feat: add implicit README settings to directory settings copy

This commit is contained in:
David Bailey 2023-12-19 10:18:34 +01:00
parent d2dc57a36a
commit b552562f31

View file

@ -74,6 +74,9 @@ class PostHandler extends MySQLAdapter {
if(isset($post_metadata['directory_data'])) {
$readme_metadata = $post_metadata['directory_data'];
}
if(isset($post_metadata['settings'])) {
$readme_metadata['settings'] = $post_metadata['settings'];
}
$this->update_or_create_post(dirname($post_path),
$readme_metadata, $post_content);