Yuki Takei 7 лет назад
Родитель
Сommit
40a20c6768

+ 1 - 1
src/server/models/attachment.js

@@ -21,7 +21,7 @@ module.exports = function(crowi) {
   attachmentSchema = new mongoose.Schema({
     page: { type: ObjectId, ref: 'Page', index: true },
     creator: { type: ObjectId, ref: 'User', index: true  },
-    filePath: { type: String },   // DEPRECATED: remains for backward compatibility for v3.3.7 or below
+    filePath: { type: String },   // DEPRECATED: remains for backward compatibility for v3.3.x or below
     fileName: { type: String, required: true },
     originalName: { type: String },
     fileFormat: { type: String, required: true },

+ 1 - 1
src/server/routes/index.js

@@ -176,7 +176,7 @@ module.exports = function(crowi, app) {
 
   app.get( '/:id([0-9a-z]{24})'       , loginRequired(crowi, app, false) , page.redirector);
   app.get( '/_r/:id([0-9a-z]{24})'    , loginRequired(crowi, app, false) , page.redirector); // alias
-  app.get( '/attachment/:pageId/:fileName'  , loginRequired(crowi, app, false), attachment.api.obsoletedGetForMongoDB); // DEPRECATED: remains for backward compatibility for v3.3.3 or below
+  app.get( '/attachment/:pageId/:fileName'  , loginRequired(crowi, app, false), attachment.api.obsoletedGetForMongoDB); // DEPRECATED: remains for backward compatibility for v3.3.x or below
   app.get( '/attachment/:id([0-9a-z]{24})'  , loginRequired(crowi, app, false), attachment.api.get);
   app.get( '/download/:id([0-9a-z]{24})'    , loginRequired(crowi, app, false), attachment.api.download);
 

+ 1 - 1
src/server/service/file-uploader/aws.js

@@ -37,7 +37,7 @@ module.exports = function(crowi) {
   }
 
   function getFilePathOnStorage(attachment) {
-    if (attachment.filePath != null) {  // backward compatibility for v3.3.7 or below
+    if (attachment.filePath != null) {  // backward compatibility for v3.3.x or below
       return attachment.filePath;
     }
 

+ 1 - 1
src/server/service/file-uploader/local.js

@@ -13,7 +13,7 @@ module.exports = function(crowi) {
 
   function getFilePathOnStorage(attachment) {
     let filePath;
-    if (attachment.filePath != null) {  // backward compatibility for v3.3.7 or below
+    if (attachment.filePath != null) {  // backward compatibility for v3.3.x or below
       filePath = path.posix.join(basePath, attachment.filePath);
     }
     else {