mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
DEV: Create a site setting for video thumbnails (#21266)
Creating a way to disable the auto generation of video thumbnails.
This commit is contained in:
parent
c6d44e504f
commit
67a8c13197
|
@ -18,6 +18,9 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
|
|||
|
||||
@bind
|
||||
_generateVideoThumbnail(videoFile, uploadUrl) {
|
||||
if (!this.siteSettings.video_thumbnails_enabled) {
|
||||
return;
|
||||
}
|
||||
let video = document.createElement("video");
|
||||
video.src = URL.createObjectURL(videoFile.data);
|
||||
|
||||
|
|
|
@ -1568,6 +1568,10 @@ files:
|
|||
default: false
|
||||
client: true
|
||||
hidden: true
|
||||
video_thumbnails_enabled:
|
||||
default: true
|
||||
client: true
|
||||
hidden: true
|
||||
|
||||
trust:
|
||||
default_trust_level:
|
||||
|
|
Loading…
Reference in New Issue
Block a user