Support DNT in Twitter shortcode for GDPR

Fixes #4765
This commit is contained in:
Bjørn Erik Pedersen
2018-05-24 12:25:52 +02:00
parent 3bfe8f4be6
commit 9753cb59f1
4 changed files with 12 additions and 2 deletions

View File

@@ -67,6 +67,10 @@ type SpeakerDeck struct {
// Twitter holds the privacy configuration settingsrelated to the Twitter shortcode.
type Twitter struct {
Service `mapstructure:",squash"`
// When set to true, the Tweet and its embedded page on your site are not used
// for purposes that include personalized suggestions and personalized ads.
EnableDNT bool
}
// Vimeo holds the privacy configuration settingsrelated to the Vimeo shortcode.