Archived
1
0
This commit is contained in:
Jeff Becker 2018-03-09 07:06:08 -05:00
parent 024f773a7c
commit 95e96db324
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
3 changed files with 7 additions and 2 deletions

View File

@ -732,6 +732,9 @@ func (self *thread) HasOmittedImages() bool {
}
func (self *thread) BumpLock() bool {
if self.Posts == nil {
return false
}
return len(self.Posts) >= BumpLimit
}

View File

@ -40,7 +40,8 @@
<br />
{{{form}}}
{{#thread.BumpLock}}
<div class="thread bumplock" id="thread_{{thread.OP.PostHash}}">
<div class="thread bumplock" id="thread_{{thread.OP.PostHash}}">
{{/thread.BumpLock}}
{{^thread.BumpLock}}
<div class="thread" id="thread_{{thread.OP.PostHash}}">
{{/thread.BumpLock}}

View File

@ -46,7 +46,8 @@
</div>
{{#threads}}
{{#BumpLock}}
<div class="thread bumplock" id="thread_{{OP.PostHash}}">
<div class="thread bumplock" id="thread_{{OP.PostHash}}">
{{/BumpLock}}
{{^BumpLock}}
<div class="thread" id="thread_{{OP.PostHash}}">
{{/BumpLock}}