don't filter pads after 30 days

This commit is contained in:
ansuz 2016-07-04 15:34:43 +02:00
parent d621bc4079
commit 7a5877d12a
1 changed files with 1 additions and 4 deletions

View File

@ -26,7 +26,7 @@ define([
};
var storageKey = common.storageKey = 'CryptPad_RECENTPADS';
var timeframe = common.timeframe = 1000 * 60 * 60 * 24 * 30;
//var timeframe = common.timeframe = 1000 * 60 * 60 * 24 * 30;
/*
the first time this gets called, your local storage will migrate to a
@ -115,9 +115,6 @@ define([
pad.title = title;
}
return pad;
}).filter(function (pad) {
// remove pads with an expired atime
return (now.getTime() - new Date(pad.atime).getTime()) < timeframe;
});
if (!isUpdate) {