mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user