]> cat aescling's git repositories - mastodon.git/commitdiff
Calculate max_id without random vector (#17623)
authorJeong Arm <kjwonmail@gmail.com>
Wed, 23 Feb 2022 15:44:59 +0000 (00:44 +0900)
committerGitHub <noreply@github.com>
Wed, 23 Feb 2022 15:44:59 +0000 (16:44 +0100)
lib/mastodon/statuses_cli.rb

index e273e2614b80753b9ca480d11932418ae4191964..91b08813b38bf59b10a6da237a341268411f38a6 100644 (file)
@@ -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')