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
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,7 @@
|
||||
{{{form}}}
|
||||
{{#thread.BumpLock}}
|
||||
<div class="thread bumplock" id="thread_{{thread.OP.PostHash}}">
|
||||
{{/thread.BumpLock}}
|
||||
{{^thread.BumpLock}}
|
||||
<div class="thread" id="thread_{{thread.OP.PostHash}}">
|
||||
{{/thread.BumpLock}}
|
||||
|
@ -47,6 +47,7 @@
|
||||
{{#threads}}
|
||||
{{#BumpLock}}
|
||||
<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