mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: #8073, configurable necroThreshold
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user