From a00f4a987118732b303640c6b25de7a3503cf15f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 31 Jan 2015 02:33:54 -0800 Subject: [PATCH] /gif/ and /wsg/ allow audio and a larger duration limit. --- src/Posting/QR.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 002eab596..da12eb6fa 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -397,7 +397,7 @@ QR = else if duration > QR.max_duration_video QR.error "#{file.name}: Video too long (video: #{duration}s, max: #{QR.max_duration_video}s)" pass = false - if video.mozHasAudio or video.webkitAudioDecodedByteCount + if g.BOARD.ID not in ['gif', 'wsg'] and (video.mozHasAudio or video.webkitAudioDecodedByteCount) QR.error "#{file.name}: Audio not allowed" pass = false cb pass, video @@ -495,7 +495,7 @@ QR = +nodes.fileInput.max QR.max_width_video = QR.max_height_video = 2048 - QR.max_duration_video = 120 + QR.max_duration_video = if g.BOARD.ID in ['gif', 'wsg'] then 300 else 120 if Conf['Show New Thread Option in Threads'] $.addClass QR.nodes.el, 'show-new-thread-option'