Fix "tootctl media remove-orphans" crashing when encountering invalid media (#13170)

Fixes #13168
main
Eugen Rochko 5 years ago committed by GitHub
parent 036ba3f510
commit d081a80cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,6 +170,7 @@ class MediaAttachment < ApplicationRecord
def variant?(other_file_name)
return true if file_file_name == other_file_name
return false if file_file_name.nil?
formats = file.styles.values.map(&:format).compact

Loading…
Cancel
Save