From aad470ccef8131e17968e45959bbb3e309ea83bb Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 29 Feb 2020 14:52:41 -0800 Subject: [PATCH] Update thread.pug fix thread subject priority bug --- views/pages/thread.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/pages/thread.pug b/views/pages/thread.pug index fe11bafd..acbf785d 100644 --- a/views/pages/thread.pug +++ b/views/pages/thread.pug @@ -6,7 +6,7 @@ include ../mixins/boardheader.pug block head script(src='/js/all.js') - - const subjectString = thread.subject || thread.nomarkup ? `${thread.nomarkup.substring(0, globalLimits.fieldLength.subject)}${thread.nomarkup.length > globalLimits.fieldLength.subject ? '...' : ''}` : thread.postId; + - const subjectString = thread.subject || (thread.nomarkup ? `${thread.nomarkup.substring(0, globalLimits.fieldLength.subject)}${thread.nomarkup.length > globalLimits.fieldLength.subject ? '...' : ''}` : thread.postId); title /#{board._id}/ - #{subjectString} if !modview meta(property='og:site_name', value=meta.siteName)