No downloading of GIF videos in Chrome

pull/38/head
Noah Petherbridge 2024-01-27 14:44:30 -08:00
parent fedfbed4eb
commit 211c649f9a
6 changed files with 7 additions and 7 deletions

View File

@ -519,7 +519,7 @@
<div class="column is-one-quarter is-clipped">
<!-- GIF video? -->
{{if HasSuffix $Body.Photo.Filename ".mp4"}}
<video loop controls
<video loop controls controlsList="nodownload"
{{if BlurExplicit $Body.Photo}}class="blurred-explicit"
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
{{end}}>

View File

@ -215,7 +215,7 @@
{{else}}
<!-- GIF video? -->
{{if HasSuffix .Filename ".mp4"}}
<video autoplay loop controls>
<video autoplay loop controls controlsList="nodownload">
<source src="{{PhotoURL .Filename}}" type="video/mp4">
</video>
{{else}}

View File

@ -30,7 +30,7 @@
<div class="image block">
<!-- GIF video? -->
{{if HasSuffix .Photo.Filename ".mp4"}}
<video autoplay loop controls>
<video autoplay loop controls controlsList="nodownload">
<source src="{{PhotoURL .Photo.Filename}}" type="video/mp4">
</video>
{{else}}

View File

@ -507,7 +507,7 @@
<div class="card-image has-text-centered is-clipped">
<!-- GIF video? -->
{{if HasSuffix .Filename ".mp4"}}
<video loop controls
<video loop controls controlsList="nodownload"
{{if BlurExplicit .}}class="blurred-explicit"
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
{{end}}>
@ -628,7 +628,7 @@
<div class="card-image has-text-centered is-clipped">
<!-- GIF video? -->
{{if HasSuffix .Filename ".mp4"}}
<video loop controls
<video loop controls controlsList="nodownload"
{{if BlurExplicit .}}class="blurred-explicit"
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
{{end}}>

View File

@ -71,7 +71,7 @@
<div class="card-image has-text-centered is-clipped">
<!-- GIF video? -->
{{if HasSuffix .Photo.Filename ".mp4"}}
<video loop controls
<video loop controls controlsList="nodownload"
{{if BlurExplicit .Photo}}class="blurred-explicit"
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
{{end}}>

View File

@ -176,7 +176,7 @@
<div class="card-content">
<figure id="editphoto-preview" class="image block">
{{if HasSuffix .EditPhoto.Filename ".mp4"}}
<video autoplay loop controls>
<video autoplay loop controls controlsList="nodownload">
<source src="{{PhotoURL .EditPhoto.Filename}}" type="video/mp4">
</video>
{{else}}