Close #990
This commit is contained in:
parent
33d154c8c8
commit
fe2f4d4c0a
@ -1,3 +1,4 @@
|
||||
- Added Cooldown setting back in.
|
||||
- Fixed the Header going above posts when following quotelinks for example.
|
||||
- Fixed a bug where dead quotelinks would disappear.
|
||||
|
||||
|
||||
@ -52,6 +52,7 @@ Config =
|
||||
'Remember Subject': [false, 'Remember the subject field, instead of resetting after posting.']
|
||||
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
|
||||
'Hide Original Post Form': [true, 'Hide the normal post form.']
|
||||
'Cooldown': [true, 'Prevent "flood detected" errors.']
|
||||
'Quote Links':
|
||||
'Quote Backlinks': [true, 'Add quote backlinks.']
|
||||
'OP Backlinks': [true, 'Add backlinks to the OP.']
|
||||
|
||||
@ -128,6 +128,7 @@ QR =
|
||||
|
||||
cooldown:
|
||||
init: ->
|
||||
return unless Conf['Cooldown']
|
||||
board = g.BOARD.ID
|
||||
QR.cooldown.types =
|
||||
thread: switch board
|
||||
@ -144,6 +145,7 @@ QR =
|
||||
QR.cooldown.start()
|
||||
$.sync "cooldown.#{board}", QR.cooldown.sync
|
||||
start: ->
|
||||
return unless Conf['Cooldown']
|
||||
return if QR.cooldown.isCounting
|
||||
QR.cooldown.isCounting = true
|
||||
QR.cooldown.count()
|
||||
@ -154,6 +156,7 @@ QR =
|
||||
QR.cooldown.cooldowns[id] = cooldowns[id]
|
||||
QR.cooldown.start()
|
||||
set: (data) ->
|
||||
return unless Conf['Cooldown']
|
||||
{req, post, isReply, delay} = data
|
||||
start = if req then req.uploadEndTime else Date.now()
|
||||
if delay
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user