From f547779106094a0f121b1e8d854b4ea4c66860e2 Mon Sep 17 00:00:00 2001 From: Tuxedo Takodachi Date: Sat, 18 Mar 2023 10:29:08 +0100 Subject: [PATCH] Port: Update Randomize Filename to match current 4chan format. https://boards.4channel.org/g/thread/91737566#p91784238 from 19268975ea2d49a753624315b0928f27496aac02 --- src/Posting/QR.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.js b/src/Posting/QR.js index dd3827d73..b8263465a 100644 --- a/src/Posting/QR.js +++ b/src/Posting/QR.js @@ -1910,7 +1910,7 @@ var QR = { this.file = file; if (Conf['Randomize Filename'] && (g.BOARD.ID !== 'f')) { let ext; - this.filename = `${Date.now() - Math.floor(Math.random() * 365 * DAY)}`; + this.filename = `${Date.now() * 1000 - Math.floor(Math.random() * 365 * DAY * 1000)}`; if (ext = this.file.name.match(QR.validExtension)) { this.filename += ext[0]; } } else { this.filename = this.file.name;