diff options
author | Alex <onedrawingperday@gmail.com> | 2018-05-30 23:42:32 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-31 18:05:38 +0200 |
commit | 07b96d16e8679c40e289c9076ef4414ed6eb7f81 (patch) | |
tree | a48b1b963450746af1657081ccedfab8c995b2b6 /config/privacy | |
parent | ceaff7cafc5357274e546984ae02a4cbdf305f81 (diff) |
Fixes #4798
Diffstat (limited to 'config/privacy')
-rw-r--r-- | config/privacy/privacyConfig.go | 3 | ||||
-rw-r--r-- | config/privacy/privacyConfig_test.go | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go index d4820396d..a058c3593 100644 --- a/config/privacy/privacyConfig.go +++ b/config/privacy/privacyConfig.go @@ -77,6 +77,9 @@ type Twitter struct { // 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 + + // If simple mode is enabled, a static and no-JS version of the Tweet will be built. + Simple bool } // Vimeo holds the privacy configuration settingsrelated to the Vimeo shortcode. diff --git a/config/privacy/privacyConfig_test.go b/config/privacy/privacyConfig_test.go index 5593872de..8d9c9f14f 100644 --- a/config/privacy/privacyConfig_test.go +++ b/config/privacy/privacyConfig_test.go @@ -44,6 +44,7 @@ disable = true [privacy.twitter] disable = true enableDNT = true +simple = true [privacy.vimeo] disable = true simple = true @@ -69,6 +70,7 @@ simple = true assert.True(pc.SpeakerDeck.Disable) assert.True(pc.Twitter.Disable) assert.True(pc.Twitter.EnableDNT) + assert.True(pc.Twitter.Simple) assert.True(pc.Vimeo.Disable) assert.True(pc.Vimeo.Simple) assert.True(pc.YouTube.PrivacyEnhanced) |