mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
store teaserPid in topic
-update teaser pid as necessary in addPostToTopic, removePostFromTopic, post purge -removed 20x db calls from getTeasers -fixed scroll to post in sub folder install -upgrade script to update topics with teaserPid
This commit is contained in:
@@ -167,6 +167,9 @@ module.exports = function(Posts) {
|
||||
function (next) {
|
||||
topics.decreasePostCount(postData.tid, next);
|
||||
},
|
||||
function(next) {
|
||||
topics.updateTeaser(postData.tid, next);
|
||||
},
|
||||
function(next) {
|
||||
user.incrementUserPostCountBy(postData.uid, -1, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user