1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-18 08:38:55 +09:00

Fix unsupported video error message handling (#16581)

This commit is contained in:
Takeshi Umeda 2021-08-08 22:28:57 +09:00 committed by GitHub
parent fe29f9c621
commit 818e0b314f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ module Paperclip
metadata = VideoMetadataExtractor.new(@file.path) metadata = VideoMetadataExtractor.new(@file.path)
unless metadata.valid? unless metadata.valid?
log("Unsupported file #{@file.path}") Paperclip.log("Unsupported file #{@file.path}")
return File.open(@file.path) return File.open(@file.path)
end end