Julian Lam
2017-05-09 14:52:07 -04:00
parent ca17975422
commit 6d392089e4

View File

@@ -367,7 +367,8 @@ define('forum/topic/postTools', [
}
function showStaleWarning(callback) {
if (staleReplyAnyway || ajaxify.data.lastposttime >= (Date.now() - (1000 * 60 * 60 * 24 * ajaxify.data.topicStaleDays))) {
var staleThreshold = Math.min(Date.now() - (1000 * 60 * 60 * 24 * ajaxify.data.topicStaleDays), 8640000000000000);
if (staleReplyAnyway || ajaxify.data.lastposttime >= staleThreshold) {
return callback();
}