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