Skip to content
Snippets Groups Projects
Unverified Commit d081a80c authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

Fixes #13168
parent 036ba3f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment