diff --git a/contrib/backends/srndv2/src/srnd/model_mem.go b/contrib/backends/srndv2/src/srnd/model_mem.go index 1ca0b5b..96e17cd 100644 --- a/contrib/backends/srndv2/src/srnd/model_mem.go +++ b/contrib/backends/srndv2/src/srnd/model_mem.go @@ -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 } diff --git a/contrib/templates/placebo/thread.mustache b/contrib/templates/placebo/thread.mustache index cce0ed4..9709a2b 100644 --- a/contrib/templates/placebo/thread.mustache +++ b/contrib/templates/placebo/thread.mustache @@ -40,7 +40,8 @@
{{{form}}} {{#thread.BumpLock}} -
+
+ {{/thread.BumpLock}} {{^thread.BumpLock}}
{{/thread.BumpLock}} diff --git a/contrib/templates/placebo/ukko.mustache b/contrib/templates/placebo/ukko.mustache index cf08f7a..50d5e13 100644 --- a/contrib/templates/placebo/ukko.mustache +++ b/contrib/templates/placebo/ukko.mustache @@ -46,7 +46,8 @@
{{#threads}} {{#BumpLock}} -
+
+ {{/BumpLock}} {{^BumpLock}}
{{/BumpLock}}