Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mastofe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pleroma
mastofe
Commits
d081a80c
Unverified
Commit
d081a80c
authored
5 years ago
by
Eugen Rochko
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix "tootctl media remove-orphans" crashing when encountering invalid media (#13170)
Fixes #13168
parent
036ba3f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/models/media_attachment.rb
+1
-0
1 addition, 0 deletions
app/models/media_attachment.rb
with
1 addition
and
0 deletions
app/models/media_attachment.rb
+
1
−
0
View file @
d081a80c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment