summaryrefslogtreecommitdiffstats
path: root/config/privacy
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-21 17:34:21 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-21 21:56:42 +0200
commit88e356868062cc618385cd22b6730df2459518cd (patch)
tree8cc98139f40882488ece89aa495a668d026b8fac /config/privacy
parent2f17f9378ad96c4a9f6d7d24b0776ed3a25a08a3 (diff)
Add YouTube shortcode simple mode
Adapted from the work of @onedrawingperday. See #4616
Diffstat (limited to 'config/privacy')
-rw-r--r--config/privacy/privacyConfig.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go
index 64bbe71bb..4da7efbea 100644
--- a/config/privacy/privacyConfig.go
+++ b/config/privacy/privacyConfig.go
@@ -76,8 +76,13 @@ type YouTube struct {
// When you turn on privacy-enhanced mode,
// YouTube won’t store information about visitors on your website
- // unless they play the video.
+ // unless the user plays the embedded video.
PrivacyEnhanced bool
+
+ // If simple mode is enabled, only a thumbnail is fetched from ytimg.com and
+ // shown with a play button overlaid. If a user clicks the button, he/she will
+ // be taken to the video page on youtube.com in a new browser tab.
+ Simple bool
}
func DecodeConfig(cfg config.Provider) (pc Config, err error) {