Fix deletion cooldown bug from v1.13.1.0.

This commit is contained in:
ccd0 2016-11-09 15:17:18 -08:00
parent 16ae49b9d7
commit 29d78aa0f5
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,7 @@
QR.cooldown = QR.cooldown =
seconds: 0 seconds: 0
delays:
deletion: 60 # cooldown for deleting posts/files
# Called from Main # Called from Main
init: -> init: ->
@ -10,7 +12,7 @@ QR.cooldown =
# Called from QR # Called from QR
setup: -> setup: ->
# Read cooldown times # Read cooldown times
QR.cooldown.delays = g.BOARD.cooldowns() $.extend QR.cooldown.delays, g.BOARD.cooldowns()
# The longest reply cooldown, for use in pruning old reply data # The longest reply cooldown, for use in pruning old reply data
QR.cooldown.maxDelay = 0 QR.cooldown.maxDelay = 0

View File

@ -14,7 +14,6 @@ class Board
thread: c2.threads or 0 thread: c2.threads or 0
reply: c2.replies or 0 reply: c2.replies or 0
image: c2.images or 0 image: c2.images or 0
deletion: 60 # cooldown for deleting posts/files
thread_global: 300 # inter-board thread cooldown thread_global: 300 # inter-board thread cooldown
# Pass users have reduced cooldowns. # Pass users have reduced cooldowns.
if d.cookie.indexOf('pass_enabled=1') >= 0 if d.cookie.indexOf('pass_enabled=1') >= 0