From 89054de8291da0287d39f62d18df26273cca9048 Mon Sep 17 00:00:00 2001 From: l29utp0 <23908-l29utp0@users.noreply.gitgud.io> Date: Fri, 11 Feb 2022 01:58:45 +0000 Subject: [PATCH] fix bottom reply when thread reaches reply limit --- views/pages/thread.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/pages/thread.pug b/views/pages/thread.pug index d1261f71..c0b0fd70 100644 --- a/views/pages/thread.pug +++ b/views/pages/thread.pug @@ -53,7 +53,10 @@ block content for post in thread.replies - uids && post.userId && uids.add(post.userId) +post(post) - a.bottom-reply.no-decoration.post-button(href='#postform') [New Reply] + if thread.replyposts >= board.settings.replyLimit && !thread.cyclic && !modview + p.title.text-center ⊖ Thread has reached reply limit. + else + a.bottom-reply.no-decoration.post-button(href='#postform') [New Reply] hr(size=1) .wrapbar if modview