##// END OF EJS Templates
Fixed bumping and autoupdate initialization
neko259 -
r864:6794aa37 default
parent child Browse files
Show More
@@ -76,7 +76,7 b' class PostManager(models.Manager):'
76 if thread.can_bump() and (
76 if thread.can_bump() and (
77 thread.get_reply_count() >= settings.MAX_POSTS_PER_THREAD):
77 thread.get_reply_count() >= settings.MAX_POSTS_PER_THREAD):
78 thread.bumpable = False
78 thread.bumpable = False
79 thread.save(update_fields=['last_edit_time', 'bumpable'])
79 thread.save()
80 new_thread = False
80 new_thread = False
81
81
82 post = self.create(title=title,
82 post = self.create(title=title,
@@ -127,7 +127,7 b' function isPageBottom() {'
127 }
127 }
128
128
129 function initAutoupdate() {
129 function initAutoupdate() {
130 connectWebsocket();
130 return connectWebsocket();
131 }
131 }
132
132
133 function getReplyCount() {
133 function getReplyCount() {
General Comments 0
You need to be logged in to leave comments. Login now