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