mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-20 03:05:27 -05:00
Fix error in tootctl media refresh when cleaning some incompletely processed files (#40056)
This commit is contained in:
@@ -255,7 +255,7 @@ module Mastodon::CLI
|
||||
media_attachment.save
|
||||
end
|
||||
|
||||
media_attachment.file_file_size + (media_attachment.thumbnail_file_size || 0)
|
||||
(media_attachment.file_file_size || 0) + (media_attachment.thumbnail_file_size || 0)
|
||||
end
|
||||
|
||||
say("Downloaded #{processed} media attachments (approx. #{number_to_human_size(aggregate)})#{dry_run_mode_suffix}", :green, true)
|
||||
|
||||
Reference in New Issue
Block a user