From 6afb2c10c7dda8199fd98e5e380644c5701e8130 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Mon, 22 Jun 2020 18:04:52 +0200 Subject: [PATCH] Re-add checking whether the video can be played by the browser --- .../templates/__videoAttachmentBBCode.tpl | 15 ++++++++++++++- .../lib/system/bbcode/AttachmentBBCode.class.php | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/__videoAttachmentBBCode.tpl b/com.woltlab.wcf/templates/__videoAttachmentBBCode.tpl index 95930a7a5b..10b5fbbd37 100644 --- a/com.woltlab.wcf/templates/__videoAttachmentBBCode.tpl +++ b/com.woltlab.wcf/templates/__videoAttachmentBBCode.tpl @@ -1,7 +1,20 @@ - + {$attachment->filename} + + diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 2b8e4cc732..c2a28abf6a 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -160,6 +160,7 @@ class AttachmentBBCode extends AbstractBBCode { else if (substr($attachment->fileType, 0, 6) === 'video/' && $parser->getOutputType() == 'text/html') { return WCF::getTPL()->fetch('__videoAttachmentBBCode', 'wcf', [ 'attachment' => $attachment, + 'attachmentIdentifier' => StringUtil::getRandomID(), ]); } else { -- 2.20.1