Skip to content

Commit

Permalink
Update Randomize Filename to match current 4chan format. https://boar…
Browse files Browse the repository at this point in the history
  • Loading branch information
ccd0 committed Feb 27, 2023
1 parent aef984d commit 1926897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Posting/QR.post.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1926897

Please sign in to comment.