Fix potential problem similar to #1545
This commit is contained in:
@@ -49,8 +49,8 @@ class Post < ActiveRecord::Base
|
|||||||
|
|
||||||
def delete_remote_files
|
def delete_remote_files
|
||||||
RemoteFileManager.new(file_path).delete
|
RemoteFileManager.new(file_path).delete
|
||||||
RemoteFileManager.new(real_preview_file_path).delete
|
RemoteFileManager.new(real_preview_file_path).delete if is_image?
|
||||||
RemoteFileManager.new(ssd_preview_file_path).delete if Danbooru.config.ssd_path
|
RemoteFileManager.new(ssd_preview_file_path).delete if Danbooru.config.ssd_path && is_image?
|
||||||
RemoteFileManager.new(large_file_path).delete if has_large?
|
RemoteFileManager.new(large_file_path).delete if has_large?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user