Added chapters to the API

This commit is contained in:
Dan Brown
2020-05-23 00:28:41 +01:00
parent 24bad5034a
commit 8a6cf0cdec
24 changed files with 575 additions and 31 deletions

View File

@@ -211,7 +211,7 @@ class PageRepo
*/
protected function savePageRevision(Page $page, string $summary = null)
{
$revision = new PageRevision($page->toArray());
$revision = new PageRevision($page->getAttributes());
if (setting('app-editor') !== 'markdown') {
$revision->markdown = '';