Update thread.pug

fix thread subject priority bug
merge-requests/208/head
Thomas Lynch 4 years ago committed by GitHub
parent 766fbe3b8c
commit aad470ccef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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)

Loading…
Cancel
Save