diff --git a/lib/oneboxer.rb b/lib/oneboxer.rb index 863b1a782ac..871e48c96e5 100644 --- a/lib/oneboxer.rb +++ b/lib/oneboxer.rb @@ -171,9 +171,9 @@ module Oneboxer def self.local_upload_html(url) case File.extname(URI(url).path || "") - when /^\.(mov|mp4|webm|ogv)$/i + when /^\.(mov|mp4|m4v|webm|ogv|3gp)$/i "" - when /^\.(mp3|ogg|wav|m4a)$/i + when /^\.(mp3|og[ga]|opus|wav|m4[abpr]|aac|flac)$/i "" end end