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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
{{{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}}
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
{{#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