Fix error in tootctl media refresh when cleaning some incompletely processed files (#40056)

This commit is contained in:
Shlee
2026-08-10 18:23:22 +09:30
committed by GitHub
parent 7ec26f32dc
commit 6844f4009a

View File

@@ -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)