Potential fix for #1545

This commit is contained in:
Toks
2013-10-06 17:32:22 -04:00
parent d7abbf2003
commit 0cef28d89c

View File

@@ -42,8 +42,8 @@ class Post < ActiveRecord::Base
module FileMethods
def distribute_files
RemoteFileManager.new(file_path).distribute
RemoteFileManager.new(real_preview_file_path).distribute
RemoteFileManager.new(ssd_preview_file_path).distribute if Danbooru.config.ssd_path
RemoteFileManager.new(real_preview_file_path).distribute if is_image?
RemoteFileManager.new(ssd_preview_file_path).distribute if Danbooru.config.ssd_path && is_image?
RemoteFileManager.new(large_file_path).distribute if has_large?
end