From 19268975ea2d49a753624315b0928f27496aac02 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 26 Feb 2023 20:33:35 -0800 Subject: [PATCH] Update Randomize Filename to match current 4chan format. https://boards.4channel.org/g/thread/91737566#p91784238 --- src/Posting/QR.post.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index a658a82a2..a7294abc1 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -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