mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 16:33:10 +02:00
fix: #8073, configurable necroThreshold
This commit is contained in:
@@ -81,6 +81,7 @@ topicsController.get = async function getTopic(req, res, callback) {
|
||||
topicData['downvote:disabled'] = meta.config['downvote:disabled'];
|
||||
topicData['feeds:disableRSS'] = meta.config['feeds:disableRSS'];
|
||||
topicData.bookmarkThreshold = meta.config.bookmarkThreshold;
|
||||
topicData.necroThreshold = meta.config.necroThreshold;
|
||||
topicData.postEditDuration = meta.config.postEditDuration;
|
||||
topicData.postDeleteDuration = meta.config.postDeleteDuration;
|
||||
topicData.scrollToMyPost = settings.scrollToMyPost;
|
||||
|
||||
@@ -163,6 +163,13 @@
|
||||
[[admin/settings/post:timestamp.cut-off-help]]
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="necroThreshold">[[admin/settings/post:timestamp.necro-threshold]]</label>
|
||||
<input type="number" class="form-control" id="necroThreshold" data-field="necroThreshold" />
|
||||
<p class="help-block">
|
||||
[[admin/settings/post:timestamp.necro-threshold-help]]
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user