fix
This commit is contained in:
parent
024f773a7c
commit
95e96db324
@ -732,6 +732,9 @@ func (self *thread) HasOmittedImages() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *thread) BumpLock() bool {
|
func (self *thread) BumpLock() bool {
|
||||||
|
if self.Posts == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return len(self.Posts) >= BumpLimit
|
return len(self.Posts) >= BumpLimit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,8 @@
|
|||||||
<br />
|
<br />
|
||||||
{{{form}}}
|
{{{form}}}
|
||||||
{{#thread.BumpLock}}
|
{{#thread.BumpLock}}
|
||||||
<div class="thread bumplock" id="thread_{{thread.OP.PostHash}}">
|
<div class="thread bumplock" id="thread_{{thread.OP.PostHash}}">
|
||||||
|
{{/thread.BumpLock}}
|
||||||
{{^thread.BumpLock}}
|
{{^thread.BumpLock}}
|
||||||
<div class="thread" id="thread_{{thread.OP.PostHash}}">
|
<div class="thread" id="thread_{{thread.OP.PostHash}}">
|
||||||
{{/thread.BumpLock}}
|
{{/thread.BumpLock}}
|
||||||
|
@ -46,7 +46,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{#threads}}
|
{{#threads}}
|
||||||
{{#BumpLock}}
|
{{#BumpLock}}
|
||||||
<div class="thread bumplock" id="thread_{{OP.PostHash}}">
|
<div class="thread bumplock" id="thread_{{OP.PostHash}}">
|
||||||
|
{{/BumpLock}}
|
||||||
{{^BumpLock}}
|
{{^BumpLock}}
|
||||||
<div class="thread" id="thread_{{OP.PostHash}}">
|
<div class="thread" id="thread_{{OP.PostHash}}">
|
||||||
{{/BumpLock}}
|
{{/BumpLock}}
|
||||||
|
Reference in New Issue
Block a user