red text and hide postform button when thread hits reply limit, not in modview and not cyclical

jschan
Thomas Lynch 3 years ago
parent 23dff03b86
commit 3cf216450e
  1. 5
      models/forms/changeboardsettings.js
  2. 7
      views/pages/thread.pug

@ -151,6 +151,11 @@ module.exports = async (req, res, next) => {
rebuildCatalog = true;
}
if (newSettings.replyLimit !== oldSettings.replyLimit) {
rebuildBoard = true;
rebuildThreads = true;
}
if (newSettings.captchaMode > oldSettings.captchaMode) {
if (oldSettings.captchaMode === 0) {
rebuildBoard = true;

@ -31,8 +31,11 @@ block head
block content
+boardheader(modview ? 'Mod View' : null)
br
include ../includes/postform.pug
br
if thread.replyposts >= replyLimit && !thread.cyclic && !modview
include ../includes/postform.pug
br
else
p.title.text-center ⊖ Thread has reached reply limit.
include ../includes/announcements.pug
include ../includes/stickynav.pug
if modview

Loading…
Cancel
Save