Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/models/status.rb Resolved by taking both changes (not a real conflict, just changes too close to each other).
This commit is contained in:
@ -242,8 +242,9 @@ module Mastodon
|
||||
end
|
||||
|
||||
culled += 1
|
||||
say('.', :green, false)
|
||||
say('+', :green, false)
|
||||
else
|
||||
account.touch # Touch account even during dry run to avoid getting the account into the window again
|
||||
say('.', nil, false)
|
||||
end
|
||||
end
|
||||
|
@ -50,10 +50,10 @@ module Mastodon
|
||||
else
|
||||
MediaAttachment.where.not(remote_url: '').where.not(file_file_name: nil).where('created_at < ?', time_ago).reorder(nil).find_in_batches do |media_attachments|
|
||||
media_attachments.each do |m|
|
||||
size += m.file_file_size || 0
|
||||
Maintenance::UncacheMediaWorker.new.perform(m) unless options[:dry_run]
|
||||
options[:verbose] ? say(m.id) : say('.', :green, false)
|
||||
processed += 1
|
||||
size += m.file_file_size || 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user