This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix "tootctl media remove-orphans" crashing when encountering invalid media (
#13170
)
Fixes
#13168
master
Eugen Rochko
4 years ago
committed by
GitHub
parent
036ba3f510
commit
d081a80cff
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/models/media_attachment.rb
+ 1
- 0
app/models/media_attachment.rb
View File
@ -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
Write
Preview
Loading…
Cancel
Save