Shun Miyazawa 2 lat temu
rodzic
commit
2549786521

+ 2 - 2
apps/app/src/server/models/obsolete-page.js

@@ -62,8 +62,8 @@ export const extractToAncestorsPaths = (pagePath) => {
 /**
  * populate page (Query or Document) to show revision
  * @param {any} page Query or Document
- * @param {string | undefined} userPublicFields string to set to select
- * @param {boolean} shouldExcludeBody
+ * @param {string} userPublicFields string to set to select
+ * @param {boolean} shouldExcludeBody boolean indicating whether to include 'revision.body' or not
  */
 /* eslint-disable object-curly-newline, object-property-newline */
 export const populateDataToShowRevision = (page, userPublicFields, shouldExcludeBody = false) => {

+ 1 - 1
apps/app/src/server/service/config-loader.ts

@@ -686,7 +686,7 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
     ns: 'crowi',
     key: 'app:ssrMaxRevisionBodyLength',
     type: ValueType.NUMBER,
-    default: 10,
+    default: 50000,
   },
 };