Archived
1
0

add bumplock css

This commit is contained in:
Jeff Becker
2018-03-09 07:01:33 -05:00
parent 702ab469cd
commit 024f773a7c
5 changed files with 23 additions and 3 deletions

View File

@@ -731,6 +731,10 @@ func (self *thread) HasOmittedImages() bool {
return self.truncatedImageCount > 0
}
func (self *thread) BumpLock() bool {
return len(self.Posts) >= BumpLimit
}
func (self *thread) Update(db Database) {
root := self.Posts[0].MessageID()
self.Posts = append([]PostModel{self.Posts[0]}, db.GetThreadReplyPostModels(self.prefix, root, 0, 0)...)