Update Randomize Filename to match current 4chan format. https://boards.4channel.org/g/thread/91737566#p91784238
This commit is contained in:
parent
aef984da1a
commit
19268975ea
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user