Add PrivacyEnhanced mode for YouTube to the GDPR Policy

See #4616
This commit is contained in:
Bjørn Erik Pedersen
2018-05-21 14:02:30 +02:00
parent 710142016b
commit 5f24a2c047
5 changed files with 19 additions and 13 deletions

View File

@@ -72,8 +72,12 @@ type Vimeo struct {
// YouTube holds the privacy configuration settingsrelated to the YouTube shortcode.
type YouTube struct {
Service `mapstructure:",squash"`
NoCookie bool
Service `mapstructure:",squash"`
// When you turn on privacy-enhanced mode,
// YouTube wont store information about visitors on your website
// unless they play the video.
PrivacyEnhanced bool
}
func DecodeConfig(cfg config.Provider) (pc Config, err error) {