mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Fix directory.files.all not being converted to array
This commit is contained in:
parent
a5ac53d326
commit
6434d8ab4b
|
|
@ -158,7 +158,7 @@ module Mastodon::CLI
|
|||
|
||||
loop do
|
||||
objects = begin
|
||||
directory.files.all(prefix: prefix, marker: last_key, limit: 1000)
|
||||
directory.files.all(prefix: prefix, marker: last_key, limit: 1000).to_a
|
||||
rescue => e
|
||||
progress.log(pastel.red("Error fetching list of files: #{e}"))
|
||||
progress.log("If you want to continue from this point, add --start-after=#{last_key} to your command") if last_key
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user