No downloading of GIF videos in Chrome
This commit is contained in:
parent
fedfbed4eb
commit
211c649f9a
|
@ -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}}>
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}>
|
||||
|
|
|
@ -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}}>
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user