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 =
seconds: 0
delays:
deletion: 60 # cooldown for deleting posts/files
# Called from Main
init: ->
@ -10,7 +12,7 @@ QR.cooldown =
# Called from QR
setup: ->
# 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
QR.cooldown.maxDelay = 0

View File

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