about summary refs log tree commit diff
path: root/lib/mastodon/statuses_cli.rb
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-02-24 00:44:59 +0900
committerGitHub <noreply@github.com>2022-02-23 16:44:59 +0100
commit3e12abc1fe9b32f69eaf2a8d1edf8bad9622eb4a (patch)
tree391b44762334ec6344da88a8ea78f92ffcbd1515 /lib/mastodon/statuses_cli.rb
parentb950807fd2eec410062abd91c820cdfdb7fac353 (diff)
Calculate max_id without random vector (#17623)
Diffstat (limited to 'lib/mastodon/statuses_cli.rb')
-rw-r--r--lib/mastodon/statuses_cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/statuses_cli.rb b/lib/mastodon/statuses_cli.rb
index e273e2614..91b08813b 100644
--- a/lib/mastodon/statuses_cli.rb
+++ b/lib/mastodon/statuses_cli.rb
@@ -54,7 +54,7 @@ module Mastodon
 
       ActiveRecord::Base.connection.add_index(:media_attachments, :remote_url, name: :index_media_attachments_remote_url, where: 'remote_url is not null', algorithm: :concurrently, if_not_exists: true)
 
-      max_id   = Mastodon::Snowflake.id_at(options[:days].days.ago)
+      max_id   = Mastodon::Snowflake.id_at(options[:days].days.ago, with_random: false)
       start_at = Time.now.to_f
 
       unless options[:continue] && ActiveRecord::Base.connection.table_exists?('statuses_to_be_deleted')