cyclic post prune change

merge-requests/208/head
fatchan 5 years ago
parent 40c6f486ab
commit 3cd2fc35f0
  1. 16
      models/forms/makepost.js
  2. 7
      views/custompages/rules.pug

@ -408,14 +408,14 @@ module.exports = async (req, res, next) => {
}, 0);
//reduce amount counted in post by number of posts deleted
await Posts.db.updateOne({
'postId': data.thread,
'board': board._id
}, {
'$inc': { //negative increment
'replyposts': -cyclicOverflowPosts.length,
'replyfiles': -fileCount
}
});
'postId': thread.postId,
'board': board._id
}, {
'$inc': { //negative increment
'replyposts': -cyclicOverflowPosts.length,
'replyfiles': -fileCount
}
});
}
}

@ -10,7 +10,6 @@ block content
table.table-body
tr.table-row
td
p Do not post, link or promote any content that violates laws of the United States of America
p Do not spam, flood or perform any actions to an extent that negatively impacts the usual function of the website/server
p SFW marked boards should be primarily safe for work and make ensure that NSFW content is spoilered
p Do not post, link or promote any content that violates laws of the United States of America.
p Do not spam, flood or perform any actions to an extent that negatively impacts the usual function of the website/server.
p SFW marked boards should have primarily SFW content and ensure that any NSFW content is spoilered.

Loading…
Cancel
Save