Explorar o código

Fix Ambiguous SQL error on tootctl media refresh (#19206)

Jeong Arm hai 1 ano
pai
achega
882e54c786
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/mastodon/media_cli.rb

+ 1 - 1
lib/mastodon/media_cli.rb

@@ -234,7 +234,7 @@ module Mastodon
       end
 
       if options[:days].present?
-        scope = scope.where('id > ?', Mastodon::Snowflake.id_at(options[:days].days.ago, with_random: false))
+        scope = scope.where('media_attachments.id > ?', Mastodon::Snowflake.id_at(options[:days].days.ago, with_random: false))
       end
 
       processed, aggregate = parallelize_with_progress(scope) do |media_attachment|