|
@@ -3464,8 +3464,6 @@ class PageService {
|
|
|
async create(path: string, body: string, user, options: PageCreateOptions = {}): Promise<PageDocument> {
|
|
async create(path: string, body: string, user, options: PageCreateOptions = {}): Promise<PageDocument> {
|
|
|
const Page = mongoose.model('Page') as unknown as PageModel;
|
|
const Page = mongoose.model('Page') as unknown as PageModel;
|
|
|
|
|
|
|
|
- const expandContentWidth = this.crowi.configManager.getConfig('crowi', 'customize:isContainerFluid');
|
|
|
|
|
-
|
|
|
|
|
// Switch method
|
|
// Switch method
|
|
|
const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');
|
|
const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');
|
|
|
if (!isV5Compatible) {
|
|
if (!isV5Compatible) {
|
|
@@ -3512,9 +3510,6 @@ class PageService {
|
|
|
const parent = await this.getParentAndFillAncestorsByUser(user, path);
|
|
const parent = await this.getParentAndFillAncestorsByUser(user, path);
|
|
|
page.parent = parent._id;
|
|
page.parent = parent._id;
|
|
|
}
|
|
}
|
|
|
- if (expandContentWidth != null) {
|
|
|
|
|
- page.expandContentWidth = expandContentWidth;
|
|
|
|
|
- }
|
|
|
|
|
// Save
|
|
// Save
|
|
|
let savedPage = await page.save();
|
|
let savedPage = await page.save();
|
|
|
|
|
|