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
0773a512
Unverified
Commit
0773a512
authored
4 years ago
by
Eugen Rochko
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix trying to delete already deleted file when post-processing (#13406)
Fix #13403
parent
2924cef2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/workers/post_process_media_worker.rb
+1
-1
1 addition, 1 deletion
app/workers/post_process_media_worker.rb
lib/paperclip/attachment_extensions.rb
+0
-11
0 additions, 11 deletions
lib/paperclip/attachment_extensions.rb
with
1 addition
and
12 deletions
app/workers/post_process_media_worker.rb
+
1
−
1
View file @
0773a512
...
...
@@ -25,7 +25,7 @@ class PostProcessMediaWorker
media_attachment
=
MediaAttachment
.
find
(
media_attachment_id
)
media_attachment
.
processing
=
:in_progress
media_attachment
.
save
media_attachment
.
file
.
reprocess
_
original
!
media_attachment
.
file
.
reprocess
!
(
:
original
)
media_attachment
.
processing
=
:complete
media_attachment
.
save
rescue
ActiveRecord
::
RecordNotFound
...
...
This diff is collapsed.
Click to expand it.
lib/paperclip/attachment_extensions.rb
+
0
−
11
View file @
0773a512
...
...
@@ -14,17 +14,6 @@ module Paperclip
end
end
def
reprocess_original!
old_original_path
=
path
(
:original
)
reprocess!
(
:original
)
new_original_path
=
path
(
:original
)
if
new_original_path
!=
old_original_path
@queued_for_delete
<<
old_original_path
flush_deletes
end
end
def
variant?
(
other_filename
)
return
true
if
original_filename
==
other_filename
return
false
if
original_filename
.
nil?
...
...
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