Update Randomize Filename to match current 4chan format. https://boards.4channel.org/g/thread/91737566#p91784238

This commit is contained in:
ccd0 2023-02-26 20:33:35 -08:00
parent aef984da1a
commit 19268975ea

View File

@ -207,7 +207,7 @@ QR.post = class
setFile: (@file) ->
if Conf['Randomize Filename'] and g.BOARD.ID isnt 'f'
@filename = "#{Date.now() - Math.floor(Math.random() * 365 * $.DAY)}"
@filename = "#{Date.now() * 1000 - Math.floor(Math.random() * 365 * $.DAY * 1000)}"
@filename += ext[0] if ext = @file.name.match QR.validExtension
else
@filename = @file.name