itizawa há 5 anos atrás
pai
commit
2326a7049f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/routes/page.js

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

@@ -455,7 +455,7 @@ module.exports = function(crowi, app) {
     }
 
     // check if share link is expired
-    if (shareLink.createdAt.getTime() < new Date().getTime()) {
+    if (shareLink.expiredAt.getTime() < new Date().getTime()) {
       // page is not found
       return res.render(`layout-${layoutName}/expired_shared_page`);
     }