fix
This commit is contained in:
parent
024f773a7c
commit
95e96db324
@ -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
|
||||
}
|
||||
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user