fix: #8073, configurable necroThreshold

This commit is contained in:
Baris Usakli
2019-12-03 12:11:39 -05:00
parent 160e0ab1f5
commit 4d66978338
5 changed files with 13 additions and 2 deletions

View File

@@ -261,8 +261,8 @@ define('forum/topic/posts', [
};
function addNecroPostMessage() {
var necroThreshold = 7 * 24 * 60 * 60 * 1000;
if (config.topicPostSort !== 'newest_to_oldest' && config.topicPostSort !== 'oldest_to_newest') {
var necroThreshold = ajaxify.data.necroThreshold * 24 * 60 * 60 * 1000;
if (!necroThreshold || (config.topicPostSort !== 'newest_to_oldest' && config.topicPostSort !== 'oldest_to_newest')) {
return;
}