Commits

Anonymous committed 3d5c9ac

fix for hijiribe copy preview

Comments (0)

Files changed (1)

app/models/post_methods/image_store/local_flat.rb

           FileUtils.chmod(0664, preview_path)
           
           if CONFIG["ssd_path"]
-            FileUtils.cp(preview_path, ssd_preview_path)
-            FileUtils.chmod(0664, ssd_preview_path)
+            begin
+              FileUtils.cp(preview_path, ssd_preview_path)
+              FileUtils.chmod(0664, ssd_preview_path)
+            rescue ArgumentError
+              # ignore
+            end
           end
         end